Skip to content

Commit

Permalink
Set default limit on creation of new qe and on run (apache#6400)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8c4f723)
  • Loading branch information
jeffreythewang authored and michellethomas committed Nov 20, 2018
1 parent 7152f37 commit b56e593
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/src/SqlLab/components/SqlEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class SqlEditor extends React.PureComponent {
schema: qe.schema,
tempTableName: ctas ? this.state.ctas : '',
templateParams: qe.templateParams,
queryLimit: qe.queryLimit,
queryLimit: qe.queryLimit || this.props.defaultQueryLimit,
runAsync,
ctas,
};
Expand Down
1 change: 1 addition & 0 deletions superset/assets/src/SqlLab/components/TabbedSqlEditors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ class TabbedSqlEditors extends React.PureComponent {
sql: `${t(
'-- Note: Unless you save your query, these tabs will NOT persist if you clear your cookies or change browsers.',
)}\n\nSELECT ...`,
queryLimit: this.props.defaultQueryLimit,
};
this.props.actions.addQueryEditor(qe);
}
Expand Down

0 comments on commit b56e593

Please sign in to comment.