Skip to content

Commit

Permalink
Add schema name to output column in query history
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Dec 7, 2016
1 parent 401d9af commit a86d7ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion superset/assets/javascripts/SqlLab/components/QueryTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,15 @@ class QueryTable extends React.PureComponent {
/>
);
} else {
q.output = q.tempTable;
const schema = q.schema ? q.schema : '';
const tempTable = q.tempTable ? q.tempTable : '';
q.output = (
<div>
<span>
{schema} <br /> {tempTable}
</span>
</div>
);
}
q.progress = (
<ProgressBar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class SqlEditor extends React.PureComponent {
sqlEditorId: qe.id,
tab: qe.title,
schema: qe.schema,
tempTableName: this.state.ctas,
tempTableName: ctas ? this.state.ctas : '',
runAsync,
ctas,
};
Expand Down

0 comments on commit a86d7ef

Please sign in to comment.