Skip to content

Snowflake: support for object constants#1223

Merged
alamb merged 1 commit intoapache:mainfrom
jmhain:sf-object-constant
Apr 26, 2024
Merged

Snowflake: support for object constants#1223
alamb merged 1 commit intoapache:mainfrom
jmhain:sf-object-constant

Conversation

@jmhain
Copy link
Copy Markdown
Contributor

@jmhain jmhain commented Apr 15, 2024

The syntax of these is identical, as far as I can tell, to DuckDB's "array notation" for STRUCTs, so this reuses the parser's existing support.

@coveralls
Copy link
Copy Markdown

coveralls commented Apr 15, 2024

Pull Request Test Coverage Report for Build 8851532958

Details

  • 38 of 47 (80.85%) changed or added relevant lines in 6 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 89.204%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/dialect/duckdb.rs 1 2 50.0%
src/dialect/generic.rs 1 2 50.0%
src/dialect/mod.rs 1 2 50.0%
src/dialect/snowflake.rs 1 2 50.0%
tests/sqlparser_common.rs 33 38 86.84%
Totals Coverage Status
Change from base Build 8816095341: -0.02%
Covered Lines: 23227
Relevant Lines: 26038

💛 - Coveralls

Copy link
Copy Markdown
Contributor

@universalmind303 universalmind303 left a comment

Choose a reason for hiding this comment

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

lgtm

@iffyio
Copy link
Copy Markdown
Contributor

iffyio commented Apr 26, 2024

@jmhain just a heads up that the MR has some conflicts to address.
cc @alamb changes LGTM for review!

Copy link
Copy Markdown
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Love it -- thank you @jmhain and @iffyio

Once the conflicts get resolved I'll merge it

@jmhain jmhain force-pushed the sf-object-constant branch from a3134dc to e7d9cdc Compare April 26, 2024 16:43
@jmhain
Copy link
Copy Markdown
Contributor Author

jmhain commented Apr 26, 2024

Thanks @alamb, conflicts resolved!

@alamb alamb merged commit deaa6d8 into apache:main Apr 26, 2024
@alamb
Copy link
Copy Markdown
Contributor

alamb commented Apr 26, 2024

Thanks again

@jmhain jmhain deleted the sf-object-constant branch April 26, 2024 19:18
JichaoS pushed a commit to luabase/sqlparser-rs that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants