mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: improve SQL parsing (#26767)
This commit is contained in:
@@ -921,6 +921,7 @@ export function formatQuery(queryEditor) {
|
||||
const { sql } = getUpToDateQuery(getState(), queryEditor);
|
||||
return SupersetClient.post({
|
||||
endpoint: `/api/v1/sqllab/format_sql/`,
|
||||
// TODO (betodealmeida): pass engine as a parameter for better formatting
|
||||
body: JSON.stringify({ sql }),
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
}).then(({ json }) => {
|
||||
|
||||
Reference in New Issue
Block a user