Skip to content

Commit

Permalink
fix(sqllab): warning message when rows limited (#13841)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuzana-vej authored Mar 29, 2021
1 parent 9f53c6c commit 467848d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions superset-frontend/src/SqlLab/components/ResultSet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export default class ResultSet extends React.PureComponent<
}

renderRowsReturned() {
const { results, rows } = this.props.query;
const { results, rows, queryLimit } = this.props.query;
const limitReached = results?.displayLimitReached;
const limitWarning = <Icon className="returnedRowsImage" name="warning" />;
return (
Expand All @@ -522,10 +522,11 @@ export default class ResultSet extends React.PureComponent<
{limitReached && (
<span className="limitMessage">
{t(
`It appears that the number of rows in the query results displayed
was limited on the server side to
the %s limit.`,
`The number of results displayed is limited to %s. Please add
additional limits/filters or download to csv to see more rows up to
the %s limit.`,
rows,
queryLimit,
)}
</span>
)}
Expand Down

0 comments on commit 467848d

Please sign in to comment.