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

Do not treat interpolated expressions as identifiers #115

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

crisptrutski
Copy link
Collaborator

@crisptrutski crisptrutski requested a review from a team December 11, 2024 10:42
@crisptrutski crisptrutski self-assigned this Dec 11, 2024
Comment on lines 127 to +128
// Do not allow dynamic tables
throw new AnalysisError(AnalysisErrorType.INVALID_QUERY);
throw new AnalysisError(AnalysisErrorType.UNSUPPORTED_EXPRESSION);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Decided to leave this open, there may be a safe subset we choose to support in future.

Comment on lines +6 to +8
{:ast-walker-1
{:tables []
:source-columns []}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This walker does its best to return a superset, for better or worse, so it keeps chugging along.

Given the later concerns about false positives, we may want to change this in future.

@crisptrutski crisptrutski enabled auto-merge (squash) December 11, 2024 10:50
@crisptrutski crisptrutski merged commit 6ea7595 into master Dec 11, 2024
4 checks passed
@crisptrutski crisptrutski deleted the skip-table-fuctions branch December 11, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants