Skip to content

Commit

Permalink
Fix table viewer -> debug track flow
Browse files Browse the repository at this point in the history
Bug: b/360404082
Change-Id: I6aea2f2d06ce0bf6d6c870b41d9d82859d1ee808
  • Loading branch information
Alexander Timin committed Aug 19, 2024
1 parent 405c843 commit b899aea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/src/frontend/sql_table_tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ export class SqlTableTab extends BottomTab<SqlTableTabConfig> {
}),
];
const {selectStatement, columns} = this.state.getCurrentRequest();
const debugTrackColumns = Object.values(columns).filter(
(c) => !c.startsWith('__'),
);
const addDebugTrack = m(
Popup,
{
Expand All @@ -92,8 +95,8 @@ export class SqlTableTab extends BottomTab<SqlTableTabConfig> {
},
m(AddDebugTrackMenu, {
dataSource: {
sqlSource: selectStatement,
columns: Object.values(columns).filter((c) => !c.startsWith('__')),
sqlSource: `SELECT ${debugTrackColumns.join(', ')} FROM (${selectStatement})`,
columns: debugTrackColumns,
},
engine: this.engine,
}),
Expand Down

0 comments on commit b899aea

Please sign in to comment.