Merged
Conversation
1787714 to
24bfe2b
Compare
betodealmeida
commented
May 19, 2025
| # "dremio": ??? | ||
| "drill": Dialects.DRILL, | ||
| # "druid": ??? | ||
| "druid": Dialects.DRUID, |
Member
Author
There was a problem hiding this comment.
I added this to sqlglot a while ago.
betodealmeida
commented
May 19, 2025
| assert SQLStatement(sql, engine).as_cte().format() == expected | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( |
Member
Author
There was a problem hiding this comment.
These tests are all copied from superset/tests/unit_tests/sql_parse_tests.py, except a few that are not relevant.
This was referenced May 19, 2025
f1897ca to
9f04829
Compare
24bfe2b to
f1a8c98
Compare
This was referenced May 28, 2025
LevisNgigi
pushed a commit
to LevisNgigi/superset
that referenced
this pull request
Jun 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
Part of #26786, stacked on:
Implement the RLS logic in
sqlglot, using both strategies currently supported: as a predicate, or as a subquery.This PR only implements the logic, but doesn't hook it up yet. That will come next.
I added unit tests for all cases current tested for the
sqlparselogic.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION