fix(cassandra): use cursor pagination for table data and exports
Closes #7465
This commit is contained in:
1 parent
d452346082
commit
4190bab5ad
17 files changed
+1099
-88
No files matched your search
@@ -338,6 +338,22 @@ mod tests {
|
||||
assert!(query.sql.contains("FROM \"public\".\"orders\""));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cassandra_bounded_search_keeps_its_limit() {
|
||||
let query = build_database_search_sql(DatabaseSearchSqlOptions {
|
||||
database_type: Some(DatabaseType::Cassandra),
|
||||
driver_profile: None,
|
||||
schema: Some("app".to_string()),
|
||||
table_name: "events".to_string(),
|
||||
columns: vec![col("id", "int", true)],
|
||||
term: "42".to_string(),
|
||||
limit: Some(17),
|
||||
})
|
||||
.unwrap();
|
||||
|
||||
assert!(query.sql.ends_with(" LIMIT 17;"), "sql was: {}", query.sql);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn builds_oceanbase_oracle_search_query_with_rownum_limit() {
|
||||
let query = build_database_search_sql(DatabaseSearchSqlOptions {
|
||||
|
||||
Reference in new issue
Block a user