Skip to content

Commit 41af344

Browse files
committed
feat(cubesql): Support multiple values in SET
1 parent e4d5791 commit 41af344

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

rust/cubesql/Cargo.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/cubesql/cubesql/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ documentation = "https://cube.dev/docs"
99
homepage = "https://cube.dev"
1010

1111
[dependencies]
12-
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "104887f467aaa7172bcfc8b96200231e115bc177", default-features = false, features = ["regex_expressions", "unicode_expressions"] }
12+
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "90f0168023bce6b7fa44d3473dd052afd444ca54", default-features = false, features = ["regex_expressions", "unicode_expressions"] }
1313
anyhow = "1.0"
1414
thiserror = "1.0"
1515
cubeclient = { path = "../cubeclient" }
1616
pg-srv = { path = "../pg-srv" }
17-
sqlparser = { git = 'https://github.com/cube-js/sqlparser-rs.git', rev = "b3b40586d4c32a218ffdfcb0462e7e216cf3d6eb" }
17+
sqlparser = { git = 'https://github.com/cube-js/sqlparser-rs.git', rev = "ac5fc7cbf4368cd4c9e6c2af0e0e35d2eff7cc16" }
1818
lazy_static = "1.4.0"
1919
base64 = "0.13.0"
2020
tokio = { version = "1.0", features = ["full", "rt", "tracing"] }

rust/cubesql/cubesql/e2e/tests/postgres.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,19 @@ impl AsyncTestSuite for PostgresIntegrationTestSuite {
10701070
})
10711071
.await?;
10721072

1073+
self.test_simple_query(
1074+
r#"SET search_path = public, other_schema"#.to_string(),
1075+
|messages| {
1076+
assert_eq!(messages.len(), 1);
1077+
1078+
// SET
1079+
if let SimpleQueryMessage::Row(_) = messages[0] {
1080+
panic!("Must be CommandComplete command, (SET is used)")
1081+
}
1082+
},
1083+
)
1084+
.await?;
1085+
10731086
// Tableau Desktop
10741087
self.test_simple_query(
10751088
r#"SET DateStyle = 'ISO';SET extra_float_digits = 2;show transaction_isolation"#

0 commit comments

Comments
 (0)