Unrecognized Redshift function SPLIT_PART
See original GitHub issueSearch before asking
- I searched the issues and found no similar issues.
What Happened
My problem is that SPLIT_PART
keyword is not recognized for redshift dialect. Here is the function:
https://docs.aws.amazon.com/redshift/latest/dg/SPLIT_PART.html
But my actual suggestion would be to have ability to add keywords in config for quick testing and use on production and after try to apply this to main code.
Expected Behaviour
Ability to add keywords in config
Observed Behaviour
I could not find how to quickly fix my issue. Also -- ignore
does not work either.
How to reproduce
Any example of using SPLIT_PART: https://docs.aws.amazon.com/redshift/latest/dg/SPLIT_PART.html
Dialect
Redshift
Version
1.2.1
Configuration
[sqlfluff] verbose = 1 dialect = redshift templater = jinja exclude_rules = L003, L033, L031, L042, L066
[sqlfluff:rules] tab_space_size = 2 max_line_length = 300
[sqlfluff:templater:jinja] library_path = sqlfluff_libs
Are you willing to work on and submit a PR to address the issue?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created a year ago
- Comments:9 (5 by maintainers)
Yes, this is the behavior of rule L034, it doesn’t fix if you are using implicit column references at the moment. See https://github.com/sqlfluff/sqlfluff/blob/main/src/sqlfluff/rules/L034.py#L160-L166
@anikolaienko The ignore comment is
--noqa
. See https://docs.sqlfluff.com/en/stable/rules.html#inline-ignoring-errors