mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 13:40:22 +00:00
Support wildcard metrics for SEMANTIC_VIEW
(#2016)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
This commit is contained in:
parent
bc478b0531
commit
ee707c72a7
3 changed files with 7 additions and 4 deletions
|
@ -16951,6 +16951,7 @@ fn test_parse_semantic_view_table_factor() {
|
|||
"SELECT * FROM SEMANTIC_VIEW(model METRICS orders.col, orders.col2)",
|
||||
None,
|
||||
),
|
||||
("SELECT * FROM SEMANTIC_VIEW(model METRICS orders.*)", None),
|
||||
// We can parse in any order but will always produce a result in a fixed order.
|
||||
(
|
||||
"SELECT * FROM SEMANTIC_VIEW(model WHERE x > 0 DIMENSIONS dim1)",
|
||||
|
@ -16980,7 +16981,6 @@ fn test_parse_semantic_view_table_factor() {
|
|||
let invalid_sqls = [
|
||||
"SELECT * FROM SEMANTIC_VIEW(model DIMENSIONS dim1 INVALID inv1)",
|
||||
"SELECT * FROM SEMANTIC_VIEW(model DIMENSIONS dim1 DIMENSIONS dim2)",
|
||||
"SELECT * FROM SEMANTIC_VIEW(model METRICS SUM(met1.avg))",
|
||||
];
|
||||
|
||||
for sql in invalid_sqls {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue