-
Notifications
You must be signed in to change notification settings - Fork 50
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
feat(engine): handle target.* #933
Conversation
Thanks @grieve54706. Could you add some test for the model with calculated fields and the SQL with a join statement?
|
def test_query_with_dot_all(manifest_str, postgres: PostgresContainer): | ||
connection_info = _to_connection_info(postgres) | ||
response = client.post( | ||
url=f"{base_url}/query", | ||
params={"limit": 1}, | ||
json={ | ||
"connectionInfo": connection_info, | ||
"manifestStr": manifest_str, | ||
"sql": 'SELECT "o".* FROM "Orders" AS "o"', | ||
}, | ||
) |
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.
Could you add the end-to-end SQL test for the calculated field and join syntax? Maybe we should add tested in TestDynamicFields
, too. We need to make sure the model-generating behavior is fine in WrenSqlRewrite
.
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.
Thanks @grieve54706 it looks nice to me.
Handle the sql with dot all like
SELECT table.* FROM table
andSELECT t.* FROM table AS t
.