-
Notifications
You must be signed in to change notification settings - Fork 17
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
Snowflake aggregation pushdown support #620
Conversation
elif data_source == "pg": | ||
assert _extract_pg_queries_from_explain(result)[0] == ( | ||
'SELECT avg(public.account.balance) AS "avg.balance", count(*) AS "count.*" ' | ||
"FROM public.account WHERE public.account.firstname LIKE 'Su_an%%'" |
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.
The original query has WHERE firstname ~~ 'Su_an%'
whereas this one has WHERE public.account.firstname LIKE 'Su_an%%'
-- shouldn't it also only have one percentage sign?
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.
As discussed offline, the answer is no, and the reason is documeted here: https://docs.sqlalchemy.org/en/14/faq/sqlexpressions.html#why-are-percent-signs-being-doubled-up-when-stringifying-sql-statements
multicorn.sqlalchemyfdw.SqlAlchemyFdw
CU-23kfzuz