-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce the calculation for TO_MANY relationship #626
Introduce the calculation for TO_MANY relationship #626
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
r#"SELECT "a"."c1", "a"."c2" FROM "default"."a""#), | ||
r#"SELECT a.c1, a.c2 FROM wrenai."default".a"#), | ||
("select wrenai.default.a.c1, wrenai.default.a.c2 from wrenai.default.a where wrenai.default.a.c1 = 1", | ||
r#"SELECT "a"."c1", "a"."c2" FROM "default"."a" WHERE ("a"."c1" = 1)"#), | ||
r#"SELECT a.c1, a.c2 FROM wrenai."default".a WHERE (a.c1 = 1)"#), | ||
("select wrenai.default.a.c1 + 1 from wrenai.default.a", | ||
r#"SELECT ("a"."c1" + 1) FROM "default"."a""#) | ||
r#"SELECT (a.c1 + 1) FROM wrenai."default".a"#) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we remove all double quotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In DataFusion v39.0.0, only quote a identifier if it's a keyword.
apache/datafusion#10573
Thanks @grieve54706 |
* upgrade to datafusio v39.0.0 * fix the 39.0.0 change * introduce to many calculation * add an example * stop panic and use DataFusionError instead * change the sqllogictests flow * stop panic and unwrap directly * fix count(*) aggregation for model and registered physical table * fmt and clippy * add one-one-many test case * fmt and clippy * fix test * update cargo lock * fmt and fix test
Description
Known issue
WrenMDL#transform_sql