fix(sqllab): Missing executed sql value in the result table (#34846)

(cherry picked from commit b89b0bdf5d)
This commit is contained in:
JUST.in DO IT
2025-08-25 13:24:29 -07:00
committed by Joe Li
parent e4f371b126
commit b6aa68dbfc
2 changed files with 3 additions and 0 deletions

View File

@@ -196,6 +196,7 @@ const ResultSet = ({
'dbId',
'tab',
'sql',
'executedSql',
'sqlEditorId',
'templateParams',
'schema',
@@ -555,6 +556,7 @@ const ResultSet = ({
sql = (
<HighlightedSql
sql={query.sql}
rawSql={query.executedSql}
{...(showSqlInline && { maxLines: 1, maxWidth: 60 })}
/>
);

View File

@@ -389,6 +389,7 @@ export default function sqlLabReducer(state = {}, action) {
results: action.results,
rows: action?.results?.query?.rows || 0,
state: QueryState.Success,
executedSql: action?.results?.query?.executedSql,
limitingFactor: action?.results?.query?.limitingFactor,
tempSchema: action?.results?.query?.tempSchema,
tempTable: action?.results?.query?.tempTable,