Repository navigation
Conversation
- This PR attempts to close apache#21945 `$partitions` is not necessary so let me remove that.
4468a81 to
6352fcf
Compare
| partition_select_clause = f"SHOW PARTITIONS FROM {full_table_name}" | ||
| else: | ||
| system_table_name = f'"{table_name}$partitions"' | ||
| system_table_name = f'"{table_name}$partitions"' if not is_trino else table_name |
There was a problem hiding this comment.
@LittleWat note that Presto does support the $partitions table suffix per the release notes. Are you saying that Hudi (which I'm not well versed with) doesn't?
There was a problem hiding this comment.
thank you for checking! Presto+Hudi works but Trino+Hudi does not work. I'm wondering if Trino supports the $partitions table suffix 🤔
There was a problem hiding this comment.
even after I made this change, I got the error so I made a draft PR in trino-python-client repo:
trinodb/trino-python-client#426
| limit: int = 0, | ||
| order_by: list[tuple[str, bool]] | None = None, | ||
| filters: dict[Any, Any] | None = None, | ||
| is_trino: bool = False, |
There was a problem hiding this comment.
If this is the route we want to take, ideally this should be not Trino specific, i.e., maybe something like use_partition_suffix.
|
Thanks @LittleWat for the PR. I've kicked off CI and added a few comments. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #26131 +/- ##
==========================================
+ Coverage 58.93% 67.04% +8.11%
==========================================
Files 1941 1941
Lines 75873 75876 +3
Branches 8447 8447
==========================================
+ Hits 44714 50872 +6158
+ Misses 28984 22829 -6155
Partials 2175 2175
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Let me close this PR because this was fixed by updating the trino-python-client (trinodb/trino-python-client#426) Fixed the error. |
SUMMARY
$partitionsis not necessary so let me remove that.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION