Răsfoiți Sursa

[editor] SELECT 1 will fail with the auto LIMIT with Impala

sreenaths 4 ani în urmă
părinte
comite
2197384ca3

+ 1 - 0
desktop/core/src/desktop/js/apps/notebook2/execution/sqlExecutable.ts

@@ -56,6 +56,7 @@ export default class SqlExecutable extends Executable {
       this.executor.defaultLimit &&
       !isNaN(this.executor.defaultLimit()) &&
       this.executor.defaultLimit() > 0 &&
+      /\sfrom\s/i.test(statement) &&
       !/\slimit\s[0-9]/i.test(statement)
     ) {
       const endMatch = statement.match(SELECT_END_REGEX);