Skip to content

Commit

Permalink
Update expected
Browse files Browse the repository at this point in the history
Because modeling-rs changed
  • Loading branch information
grieve54706 committed Jun 20, 2024
1 parent 0cbb187 commit 3050a53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wren-modeling-py/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ mod tests {
"SELECT * FROM my_catalog.my_schema.customer",
)
.unwrap();
assert_eq!(transformed_sql, r##"SELECT "my_catalog"."my_schema"."customer"."custkey", "my_catalog"."my_schema"."customer"."name" FROM (SELECT "customer"."c_custkey" AS "custkey", "customer"."c_name" AS "name" FROM "customer") AS "customer""##);
assert_eq!(transformed_sql, r##"SELECT "customer"."custkey", "customer"."name" FROM (SELECT "customer"."custkey", "customer"."name" FROM (SELECT "main"."customer"."c_custkey" AS "custkey", "main"."customer"."c_name" AS "name" FROM "main"."customer") AS "customer") AS "customer""##);
}
}
2 changes: 1 addition & 1 deletion wren-modeling-py/tests/test_modeling_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ def test_transform_sql():
rewritten_sql = wren_core.transform_sql(manifest_str, sql)
assert (
rewritten_sql
== 'SELECT "my_catalog"."my_schema"."customer"."custkey", "my_catalog"."my_schema"."customer"."name" FROM (SELECT "customer"."c_custkey" AS "custkey", "customer"."c_name" AS "name" FROM "customer") AS "customer"'
== 'SELECT "customer"."custkey", "customer"."name" FROM (SELECT "customer"."custkey", "customer"."name" FROM (SELECT "main"."customer"."c_custkey" AS "custkey", "main"."customer"."c_name" AS "name" FROM "main"."customer") AS "customer") AS "customer"'
)

0 comments on commit 3050a53

Please sign in to comment.