id stringlengths 32 49 | content stringlengths 777 333k |
|---|---|
swe-bench_data_sqlfluff__sqlfluff-4764 | Enable quiet mode/no-verbose in CLI for use in pre-commit hook
There seems to be only an option to increase the level of verbosity when using SQLFluff [CLI](https://docs.sqlfluff.com/en/stable/cli.html), not to limit it further.
It would be great to have an option to further limit the amount of prints when running `... |
swe-bench_data_sqlfluff__sqlfluff-2862 | fix keep adding new line on wrong place
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
To replicate this issue you can create a file eg. test.template.sql
```
{% if true %}
SELECT 1 + 1
{%- endif %}
```
t... |
swe-bench_data_sqlfluff__sqlfluff-2336 | L026: Rule incorrectly flag column does not exist in `FROM` clause in an UPDATE statement.
## Expected Behaviour
L026 should not fail when a subquery in an UPDATE statement references a column from the UPDATE target.
## Observed Behaviour
L026 failed due to reference was not found in the FROM clause with the f... |
swe-bench_data_sqlfluff__sqlfluff-5074 | Inconsistent output depending on --processes flag when --ignore linting is used
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
Depending on the value you set for the `--processes` flag when also using `--ignore linti... |
swe-bench_data_sqlfluff__sqlfluff-3436 | Fatal templating error with Jinja templater. Tracer produces odd results.
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
Issue found while assessing an Airflow project.
The smallest query I can make which triggers... |
swe-bench_data_sqlfluff__sqlfluff-2849 | Lint and fix throws exception when having jinja for loop inside set
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
To reproduce the error, create test.template.sql
```
{% set whitelisted= [
{'name': 'COL_1'},
... |
swe-bench_data_sqlfluff__sqlfluff-884 | Whitespace token is_whitespace is False
I expect segment.is_whitespace of a Whitespace token is True, however, it is set to False.
## Expected Behaviour
segment.is_whitespace return True
## Observed Behaviour
segment.is_whitespace return False
## Steps to Reproduce
## Version
Include the output of `sqlfluf... |
swe-bench_data_sqlfluff__sqlfluff-4151 | --disable_progress_bar Flag Broken for Fix
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
I ran `sqlfluff fix ${target} --dialect ansi --disable_progress_bar --force` on version 1.4.0 and got an error with exit code ... |
swe-bench_data_sqlfluff__sqlfluff-3354 | TypeError when using integer placeholder
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
An exception occurs when trying to use integer substituents.
### Expected Behaviour
Work without errors.
### Obs... |
swe-bench_data_sqlfluff__sqlfluff-3700 | L042 loop limit on fixes reached when CTE itself contains a subquery
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
While running `sqlfluff fix --dialect snowflake` on a sql file, I get
```
==== finding fix... |
swe-bench_data_sqlfluff__sqlfluff-3608 | Return codes are inconsistent
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
Working on #3431 - I noticed that we're inconsistent in our return codes.
In `commands.py` we call `sys.exit()` in 15 places (cur... |
swe-bench_data_sqlfluff__sqlfluff-3435 | L027: outer-level table not found in WHERE clause sub-select
### Search before asking
- [X] I searched the [issues](https://github.com/sqlfluff/sqlfluff/issues) and found no similar issues.
### What Happened
Outer-level table/view referenced in sub-select inside `WHERE` clause is not being detected.
This ... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 6