fix: 同步数据分页错误

This commit is contained in:
taojinlong 2022-12-29 22:25:47 +08:00
parent 442b76c013
commit 14a85cbcc6
7 changed files with 7 additions and 7 deletions

View File

@ -844,7 +844,7 @@ public class CKQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_OFFSET, DE_PAGE_SIZE ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP ", fields, null);
} }
@Override @Override

View File

@ -836,7 +836,7 @@ public class Db2QueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS de_tmp LIMIT DE_OFFSET, DE_PAGE_SIZE ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS de_tmp ", fields, null);
} }
@Override @Override

View File

@ -794,7 +794,7 @@ public class HiveQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_OFFSET, DE_PAGE_SIZE ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP ", fields, null);
} }
@Override @Override

View File

@ -792,7 +792,7 @@ public class ImpalaQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_PAGE_SIZE OFFSET DE_OFFSET ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP ", fields, null);
} }
@Override @Override

View File

@ -821,7 +821,7 @@ public class MysqlQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_OFFSET, DE_PAGE_SIZE ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP", fields, null);
} }
public String transTreeItem(SQLObj tableObj, DatasetRowPermissionsTreeItem item) { public String transTreeItem(SQLObj tableObj, DatasetRowPermissionsTreeItem item) {

View File

@ -828,7 +828,7 @@ public class PgQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_PAGE_SIZE OFFSET DE_OFFSET ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP ", fields, null);
} }
@Override @Override

View File

@ -835,7 +835,7 @@ public class RedshiftQueryProvider extends QueryProvider {
@Override @Override
public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) { public String createRawQuerySQLAsTmp(String sql, List<DatasetTableField> fields) {
return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP LIMIT DE_PAGE_SIZE OFFSET DE_OFFSET ", fields, null); return createRawQuerySQL(" (" + sqlFix(sql) + ") AS DE_TEMP ", fields, null);
} }
@Override @Override