You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I searched the issues and found no similar issues.
What Happened
create or replace temp table temp_testing(
id int
);
IF ('2024-03-22'<='2024-04-22') THEN
INSERT INTO temp_testing
(
id
)
SELECT1;
END IF;
select*from temp_testing```I am writing a code similar to this. SQLFluff is giving me the following errors.
Found unparsable section: " IF ($increment_date <= '2024-04-22') TH..."
Found unparsable section: 'END IF'
Found unparsable section: 'END'
![image](https://github.com/sqlfluff/sqlfluff/assets/145964600/6e0ae1d6-5d47-4028-9338-c4b922bbdcf0)
### Expected Behaviour
I expected sqlfluff be able to parse this and show no linting errors.
### Observed Behaviour
I am getting linting errors.
### How to reproduce
You can use the above mentioned code in a file and get this error.
### Dialect
Circle CI, I think?
### Version
sqlfluff, version 2.3.1
### Configuration
[sqlfluff_file.txt](https://github.com/user-attachments/files/15959397/sqlfluff_file.txt)
### Are you willing to work on and submit a PR to address the issue?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/sqlfluff/sqlfluff/blob/main/CODE_OF_CONDUCT.md)
The text was updated successfully, but these errors were encountered:
Search before asking
What Happened
Found unparsable section: " IF ($increment_date <= '2024-04-22') TH..."
Found unparsable section: 'END IF'
Found unparsable section: 'END'
The text was updated successfully, but these errors were encountered: