Skip to content

Commit

Permalink
feat(cubesql): Support multiple values in SET
Browse files Browse the repository at this point in the history
  • Loading branch information
MazterQyou committed Aug 25, 2023
1 parent e4d5791 commit fea6807
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
14 changes: 7 additions & 7 deletions rust/cubesql/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions rust/cubesql/cubesql/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ documentation = "https://cube.dev/docs"
homepage = "https://cube.dev"

[dependencies]
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "104887f467aaa7172bcfc8b96200231e115bc177", default-features = false, features = ["regex_expressions", "unicode_expressions"] }
datafusion = { git = 'https://github.com/cube-js/arrow-datafusion.git', rev = "90f0168023bce6b7fa44d3473dd052afd444ca54", default-features = false, features = ["regex_expressions", "unicode_expressions"] }
anyhow = "1.0"
thiserror = "1.0"
cubeclient = { path = "../cubeclient" }
pg-srv = { path = "../pg-srv" }
sqlparser = { git = 'https://github.com/cube-js/sqlparser-rs.git', rev = "b3b40586d4c32a218ffdfcb0462e7e216cf3d6eb" }
sqlparser = { git = 'https://github.com/cube-js/sqlparser-rs.git', rev = "ac5fc7cbf4368cd4c9e6c2af0e0e35d2eff7cc16" }
lazy_static = "1.4.0"
base64 = "0.13.0"
tokio = { version = "1.0", features = ["full", "rt", "tracing"] }
Expand Down
13 changes: 13 additions & 0 deletions rust/cubesql/cubesql/e2e/tests/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,19 @@ impl AsyncTestSuite for PostgresIntegrationTestSuite {
})
.await?;

self.test_simple_query(
r#"SET search_path = public, other_schema"#.to_string(),
|messages| {
assert_eq!(messages.len(), 1);

// SET
if let SimpleQueryMessage::Row(_) = messages[0] {
panic!("Must be CommandComplete command, (SET is used)")
}
},
)
.await?;

// Tableau Desktop
self.test_simple_query(
r#"SET DateStyle = 'ISO';SET extra_float_digits = 2;show transaction_isolation"#
Expand Down

0 comments on commit fea6807

Please sign in to comment.