Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
Search is not available for this dataset
repo
stringclasses
16 values
issue_number
int64
1
41k
category
stringclasses
1 value
instance_id
stringlengths
16
56
base_commit
stringlengths
40
40
problem_statement
stringlengths
1
65.6k
hints_text
stringlengths
0
224k
issue_state
stringclasses
2 values
issue_labels
sequencelengths
0
4
patch
stringlengths
0
108M
test_patch
stringlengths
0
105M
doc_patch
stringlengths
0
17.3M
patch_fileNums
int64
0
274
test_patch_fileNums
int64
0
209
doc_patch_fileNums
int64
0
97
language
stringclasses
2 values
created_at
timestamp[s]
version
stringclasses
1 value
environment_setup_commit
stringclasses
1 value
FAIL_TO_PASS
stringclasses
1 value
PASS_TO_PASS
stringclasses
1 value
sqlfluff/sqlfluff
6,183
pull_request
sqlfluff__sqlfluff-6183
9cf36039428d9038b5ea0e9e43116a79dc23cd40
Add UTF8 support for identifiers in Vertica dialect# https://docs.vertica.com/24.3.x/en/sql-reference/language-elements/identifiers/ : # Unquoted SQL identifiers must begin with one of the following: # * Non-Unicode letters: A–Z or a-z # -- /actually Vertica accepts also non-ASCII UTF-8 Unicode characters here, which i...
open
[]
diff --git a/src/sqlfluff/dialects/dialect_vertica.py b/src/sqlfluff/dialects/dialect_vertica.py --- a/src/sqlfluff/dialects/dialect_vertica.py +++ b/src/sqlfluff/dialects/dialect_vertica.py @@ -26,11 +26,13 @@ Ref, RegexLexer, RegexParser, + SegmentGenerator, Sequence, StringLexer, Str...
diff --git a/test/fixtures/dialects/vertica/utf8.sql b/test/fixtures/dialects/vertica/utf8.sql new file mode 100644 index 00000000000..9caab81cec5 --- /dev/null +++ b/test/fixtures/dialects/vertica/utf8.sql @@ -0,0 +1,4 @@ +--https://docs.vertica.com/24.3.x/en/sql-reference/language-elements/identifiers/ +CREATE TABLE ...
1
1
0
Python
2024-09-11T17:30:04
sqlfluff/sqlfluff
6,182
pull_request
sqlfluff__sqlfluff-6182
9cf36039428d9038b5ea0e9e43116a79dc23cd40
Add support for managed locations to databricks dialect schemas<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull req...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18175 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69736431/badge)](https://coveralls.io/builds/69736431) coverage: 99.985%. remained the same...
open
[]
diff --git a/src/sqlfluff/dialects/dialect_databricks.py b/src/sqlfluff/dialects/dialect_databricks.py --- a/src/sqlfluff/dialects/dialect_databricks.py +++ b/src/sqlfluff/dialects/dialect_databricks.py @@ -319,6 +319,28 @@ class AlterDatabaseStatementSegment(sparksql.AlterDatabaseStatementSegment): ) +class C...
diff --git a/test/fixtures/dialects/databricks/create_database.sql b/test/fixtures/dialects/databricks/create_database.sql new file mode 100644 index 00000000000..819f8efe9d6 --- /dev/null +++ b/test/fixtures/dialects/databricks/create_database.sql @@ -0,0 +1,30 @@ +-- Create database with all optional syntax +CREATE D...
2
2
0
Python
2024-09-11T13:01:37
sqlfluff/sqlfluff
6,179
pull_request
sqlfluff__sqlfluff-6179
9cf36039428d9038b5ea0e9e43116a79dc23cd40
Add volume syntax support for Databricks<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merged. Alterna...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18184 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69723474/badge)](https://coveralls.io/builds/69723474) coverage: 99.985%. remained the same...
open
[]
diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ build _build dist .pytest_cache +/sqlfluff-* # Ignore the Environment env diff --git a/src/sqlfluff/dialects/dialect_databricks.py b/src/sqlfluff/dialects/dialect_databricks.py --- a/src/sqlfluff/dialects/dialect_databricks....
diff --git a/test/fixtures/dialects/databricks/alter_volume.sql b/test/fixtures/dialects/databricks/alter_volume.sql new file mode 100644 index 00000000000..417e74ee113 --- /dev/null +++ b/test/fixtures/dialects/databricks/alter_volume.sql @@ -0,0 +1,16 @@ +-- Rename a volume +ALTER VOLUME some_vol RENAME TO some_new_v...
4
18
0
Python
2024-09-10T16:07:44
sqlfluff/sqlfluff
6,177
pull_request
sqlfluff__sqlfluff-6177
9cf36039428d9038b5ea0e9e43116a79dc23cd40
Deprecate the `ConfigLoader`The `ConfigLoader` class has been a weird oddity for a while. It had many methods for loading config, none of which really needed to be in a class, it implemented a caching layer which we could just outsource to other libraries, and it used a `global` in a slightly hacky way that I was never...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18250 0 100% 236 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69721997/badge)](https://coveralls.io/builds/69721997) coverage: 99.985%. remained the same...
open
[ "minor release" ]
diff --git a/plugins/sqlfluff-plugin-example/src/sqlfluff_plugin_example/__init__.py b/plugins/sqlfluff-plugin-example/src/sqlfluff_plugin_example/__init__.py --- a/plugins/sqlfluff-plugin-example/src/sqlfluff_plugin_example/__init__.py +++ b/plugins/sqlfluff-plugin-example/src/sqlfluff_plugin_example/__init__.py @@ -5...
diff --git a/test/core/config/fluffconfig_test.py b/test/core/config/fluffconfig_test.py --- a/test/core/config/fluffconfig_test.py +++ b/test/core/config/fluffconfig_test.py @@ -245,7 +245,7 @@ def test__config__validate_configs_indirect(): ), ( # Unsupported layout config length - ...
11
5
0
Python
2024-09-09T20:22:30
sqlfluff/sqlfluff
6,172
pull_request
sqlfluff__sqlfluff-6172
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
sparksql: Allow `INSERT OVERWRITE` after a CTE<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merged. A...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18145 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69676278/badge)](https://coveralls.io/builds/69676278) coverage: 99.985%. remained the same...
closed
[]
diff --git a/src/sqlfluff/dialects/dialect_sparksql.py b/src/sqlfluff/dialects/dialect_sparksql.py --- a/src/sqlfluff/dialects/dialect_sparksql.py +++ b/src/sqlfluff/dialects/dialect_sparksql.py @@ -459,6 +459,9 @@ Ref("ExpressionSegment"), Ref("StarSegment"), ), + NonWithNonSelectableGrammar=...
diff --git a/test/fixtures/dialects/sparksql/insert_overwrite_directory.sql b/test/fixtures/dialects/sparksql/insert_overwrite_directory.sql --- a/test/fixtures/dialects/sparksql/insert_overwrite_directory.sql +++ b/test/fixtures/dialects/sparksql/insert_overwrite_directory.sql @@ -19,3 +19,21 @@ INSERT OVERWRITE DIREC...
1
2
0
Python
2024-09-09T04:49:33
sqlfluff/sqlfluff
6,171
pull_request
sqlfluff__sqlfluff-6171
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
postgres: Add `SET CONSTRAINTS` statement<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merged. Altern...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18148 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69676212/badge)](https://coveralls.io/builds/69676212) coverage: 99.985%. remained the same...
closed
[]
diff --git a/src/sqlfluff/dialects/dialect_postgres.py b/src/sqlfluff/dialects/dialect_postgres.py --- a/src/sqlfluff/dialects/dialect_postgres.py +++ b/src/sqlfluff/dialects/dialect_postgres.py @@ -3591,6 +3591,21 @@ class TableConstraintUsingIndexSegment(BaseSegment): ) +class SetConstraintsStatementSegment(...
diff --git a/test/fixtures/dialects/postgres/set_constraints.sql b/test/fixtures/dialects/postgres/set_constraints.sql new file mode 100644 index 00000000000..11aa9406fe0 --- /dev/null +++ b/test/fixtures/dialects/postgres/set_constraints.sql @@ -0,0 +1,3 @@ +SET CONSTRAINTS ALL DEFERRED; +SET CONSTRAINTS ALL IMMEDIATE...
1
2
0
Python
2024-09-09T04:41:10
sqlfluff/sqlfluff
6,170
pull_request
sqlfluff__sqlfluff-6170
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
TSQL: Fix `MERGE` without a target alias<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merged. Alterna...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18145 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69675593/badge)](https://coveralls.io/builds/69675593) coverage: 99.985%. remained the same...
closed
[]
diff --git a/src/sqlfluff/dialects/dialect_tsql.py b/src/sqlfluff/dialects/dialect_tsql.py --- a/src/sqlfluff/dialects/dialect_tsql.py +++ b/src/sqlfluff/dialects/dialect_tsql.py @@ -4849,7 +4849,7 @@ class MergeStatementSegment(ansi.MergeStatementSegment): ), optional=True, ), - ...
diff --git a/test/fixtures/dialects/tsql/merge.sql b/test/fixtures/dialects/tsql/merge.sql --- a/test/fixtures/dialects/tsql/merge.sql +++ b/test/fixtures/dialects/tsql/merge.sql @@ -194,3 +194,9 @@ MERGE INTO Production.ProductInventory WITH (ROWLOCK, INDEX(myindex, myindex2)) OUTPUT $action, Inserted.ProductID, ...
1
2
0
Python
2024-09-09T03:34:05
sqlfluff/sqlfluff
6,169
pull_request
sqlfluff__sqlfluff-6169
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
TSQL: add `OFFSET` and `FETCH`<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merged. Alternatively if ...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18148 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69675501/badge)](https://coveralls.io/builds/69675501) coverage: 99.985%. remained the same...
closed
[]
diff --git a/src/sqlfluff/dialects/dialect_tsql.py b/src/sqlfluff/dialects/dialect_tsql.py --- a/src/sqlfluff/dialects/dialect_tsql.py +++ b/src/sqlfluff/dialects/dialect_tsql.py @@ -4299,11 +4299,32 @@ class OrderByClauseSegment(BaseSegment): ), OneOf("ASC", "DESC", optional=True), ...
diff --git a/test/fixtures/dialects/tsql/offset.sql b/test/fixtures/dialects/tsql/offset.sql new file mode 100644 index 00000000000..eb2ffe16926 --- /dev/null +++ b/test/fixtures/dialects/tsql/offset.sql @@ -0,0 +1,16 @@ +SELECT + client.reference, + client.name +FROM client +GROUP BY client.reference, client.nam...
2
2
0
Python
2024-09-09T03:20:40
sqlfluff/sqlfluff
6,168
pull_request
sqlfluff__sqlfluff-6168
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
postgres: Add support for `SUBSCRIPTION` statements<!--Thanks for adding this feature!--> <!--Please give the Pull Request a meaningful title for the release notes--> ### Brief summary of the change made <!--Please include `fixes #XXXX` to automatically close any corresponding issue when the pull request is merg...
# Coverage Results ✅ ``` Name Stmts Miss Cover Missing ------------------------------------- TOTAL 18156 0 100% 232 files skipped due to complete coverage. ``` [![Coverage Status](https://coveralls.io/builds/69675333/badge)](https://coveralls.io/builds/69675333) coverage: 99.985%. remained the same...
closed
[]
diff --git a/src/sqlfluff/dialects/dialect_postgres.py b/src/sqlfluff/dialects/dialect_postgres.py --- a/src/sqlfluff/dialects/dialect_postgres.py +++ b/src/sqlfluff/dialects/dialect_postgres.py @@ -2588,6 +2588,12 @@ class AlterExtensionStatementSegment(BaseSegment): ) +class SubscriptionReferenceSegment(ansi...
diff --git a/test/fixtures/dialects/postgres/alter_subscription.sql b/test/fixtures/dialects/postgres/alter_subscription.sql new file mode 100644 index 00000000000..b9a923e9ef6 --- /dev/null +++ b/test/fixtures/dialects/postgres/alter_subscription.sql @@ -0,0 +1,3 @@ +ALTER SUBSCRIPTION my_subscription DISABLE; + +ALTE...
1
6
0
Python
2024-09-09T03:03:16
sqlfluff/sqlfluff
6,167
pull_request
sqlfluff__sqlfluff-6167
f24b9d6a7fc8d22f17460792e05cfe5a9c43c101
"SparkSQL/Databricks: Support for `VARIANT` type<!--Thanks for adding this feature!-->\r\n\r\n<!--Pl(...TRUNCATED)
"# Coverage Results ✅\n```\nName Stmts Miss Cover Missing\n-------------------------------(...TRUNCATED)
closed
[]
"diff --git a/src/sqlfluff/dialects/dialect_sparksql.py b/src/sqlfluff/dialects/dialect_sparksql.py\(...TRUNCATED)
"diff --git a/test/fixtures/dialects/sparksql/create_table_complex_datatypes.sql b/test/fixtures/dia(...TRUNCATED)
2
2
0
Python
2024-09-09T02:59:44
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
76