Skip to content

Snowflake aggregation pushdown support#620

Merged
gruuya merged 12 commits intomasterfrom
snowflake-agg-pushdown-support-cu-23kfzuz
Jan 27, 2022
Merged

Snowflake aggregation pushdown support#620
gruuya merged 12 commits intomasterfrom
snowflake-agg-pushdown-support-cu-23kfzuz

Conversation

@gruuya
Copy link
Contributor

@gruuya gruuya commented Jan 26, 2022

  • Bump Multicorn to version where SQLAchemy backed FDWs can also push down upper relations
  • Add end-to-end tests for the above, by utilizing the existing pgorigin container, seeding it with some data and mounting it explicitly using multicorn.sqlalchemyfdw.SqlAlchemyFdw

CU-23kfzuz

@gruuya gruuya requested a review from mildbyte January 26, 2022 14:01
@gruuya gruuya self-assigned this Jan 26, 2022
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%%'"
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gruuya gruuya merged commit 1e7513e into master Jan 27, 2022
@gruuya gruuya deleted the snowflake-agg-pushdown-support-cu-23kfzuz branch January 27, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants