Skip to content
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

Simplify derived effective predicate #21327

Merged
merged 6 commits into from
Mar 30, 2024
Merged

Conversation

martint
Copy link
Member

@martint martint commented Mar 29, 2024

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@martint martint force-pushed the ir-pp-tmp branch 2 times, most recently from 732b989 to 07290c7 Compare March 29, 2024 21:04
@github-actions github-actions bot added tests:hive hive Hive connector labels Mar 29, 2024
@github-actions github-actions bot added the delta-lake Delta Lake connector label Mar 29, 2024
case LESS_THAN_OR_EQUAL -> "$lte";
case GREATER_THAN -> "$gt";
case GREATER_THAN_OR_EQUAL -> "$gte";
case IS_DISTINCT_FROM -> "$distinct";
Copy link
Member

Choose a reason for hiding this comment

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

we should think about adding this to the enum

@@ -2208,7 +2208,7 @@ public void testProjectionPushdownNonPrimitiveTypeExplain()
assertExplain(
"EXPLAIN SELECT id, _row.child, _array[1].child, _map[1] FROM " + tableName,
"ScanProject\\[table = (.*)]",
"expr(.*) := system\\.builtin\\.\\$operator\\$subscript\\(.*, bigint '1'\\).0",
"expr(.*) := .*\\$subscript\\(.*, bigint '1'\\).0",
Copy link
Member

Choose a reason for hiding this comment

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

Do we really want tests like this?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I'm thinking about removing it. It's super brittle -- it breaks on every other PR that touches the IR.

@martint martint merged commit c511c91 into trinodb:master Mar 30, 2024
98 of 99 checks passed
@martint martint deleted the ir-pp-tmp branch March 30, 2024 03:22
@github-actions github-actions bot added this to the 444 milestone Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector
Development

Successfully merging this pull request may close these issues.

2 participants