Skip to content

Join hints across dialects #3892

Closed Answered by georgesittas
williaster asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding the hints, what about patching or subclassing the Presto dialect to bring the hint support back in? E.g. you would allow them to be parsed but the generator would still omit them so you don't get invalid Presto SQL if you wanted to target that instead of Spark.

The semi-join one would need to be implemented as a pre-generation transformation, i.e. something similar to what we have in transforms.py. I'd probably look into preprocessing exp.Select and looking for exp.In expressions, so you then check if those can be transformed into semi-joins and transform the Select accordingly.

EDIT: with "to bring the hint support back in" I meant reverting this change, i.e. adding "/*+" back to

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@williaster
Comment options

Answer selected by georgesittas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants