You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wren-core/core/src/mdl/mod.rs
+34-9
Original file line number
Diff line number
Diff line change
@@ -618,8 +618,8 @@ mod test {
618
618
.await?;
619
619
assert_eq!(actual,
620
620
"SELECT \"Customer\".\"Custkey\", \"Customer\".\"Name\" FROM \
621
-
(SELECT __source.\"Custkey\" AS \"Custkey\", __source.\"Name\" AS \"Name\" FROM \
622
-
datafusion.\"public\".customer AS __source) AS \"Customer\"");
621
+
(SELECT \"Customer\".\"Custkey\", \"Customer\".\"Name\" FROM \
622
+
(SELECT __source.\"Custkey\" AS \"Custkey\", __source.\"Name\" AS \"Name\" FROM datafusion.\"public\".customer AS __source) AS \"Customer\") AS \"Customer\"");
(SELECT __source.\"名字\" AS \"名字\", __source.\"名字\" || __source.\"名字\" AS name_append, __source.\"組別\" AS \"group\", CAST(__source.\"訂閱數\" AS BIGINT) + 1 AS subscribe_plus, __source.\"訂閱數\" AS subscribe FROM artist AS __source) AS artist) AS artist"
731
731
);
732
732
ctx.sql(&actual).await?.show().await?;
733
733
@@ -843,9 +843,7 @@ mod test {
843
843
)
844
844
.await?;
845
845
assert_eq!(actual,
846
-
"SELECT artist.\"串接名字\" FROM (SELECT artist.\"串接名字\" FROM \
847
-
(SELECT __source.\"名字\" || __source.\"名字\" AS \"串接名字\" FROM artist AS __source) AS artist) AS artist");
848
-
846
+
"SELECT artist.\"串接名字\" FROM (SELECT artist.\"串接名字\" FROM (SELECT __source.\"名字\" || __source.\"名字\" AS \"串接名字\" FROM artist AS __source) AS artist) AS artist");
849
847
let sql = r#"select * from wren.test.artist"#;
850
848
let actual = transform_sql_with_ctx(
851
849
&SessionContext::new(),
@@ -855,7 +853,7 @@ mod test {
855
853
)
856
854
.await?;
857
855
assert_eq!(actual,
858
-
"SELECT artist.\"串接名字\" FROM (SELECT __source.\"名字\" || __source.\"名字\" AS \"串接名字\" FROM artist AS __source) AS artist");
856
+
"SELECT artist.\"串接名字\" FROM (SELECT artist.\"串接名字\" FROM (SELECT __source.\"名字\" || __source.\"名字\" AS \"串接名字\" FROM artist AS __source) AS artist) AS artist");
0 commit comments