You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "kdn36 (via GitHub)" <gi...@apache.org> on 2026/10/16 08:10:09 UTC
[PR] Parser: Fix array suffixes after a `>>` that closes two nested types [datafusion-sqlparser-rs]
kdn36 opened a new pull request, #2643:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2643
Dialects: Generic, BigQuery, Databricks, Spark
Fixes #2642.
When a `>>` closes two angle-bracket types at once, a following array suffix was attached to the inner type:
`STRUCT<a STRUCT<b INT>>[]` parsed as `STRUCT<a STRUCT<b INT>[]>`, `ARRAY<ARRAY<INT>>[]` as `ARRAY<ARRAY<INT>[]>`,
and `STRUCT<a STRUCT<b INT>> ARRAY` as `STRUCT<a STRUCT<b INT> ARRAY>`. `parse_data_type_helper` now returns right
after a type whose closing `>>` was matched (`trailing_bracket.0`), so no suffix (`[]`, `ARRAY`, `ZEROFILL`) attaches
to it and the enclosing type takes it, as it does with a space (`> >[]`).
The test covers `[]` (Generic), the `ARRAY` keyword (all dialects with angle-bracket `STRUCT`), `MAP<...> ARRAY`
(Databricks, Spark) and two malformed suffixes. Struct field `OPTIONS` after `>>` have the same problem; I'll send a
separate PR for that.
Built and tested with AI. Human driven and reviewed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Parser: Fix array suffixes after a `>>` that closes two nested types [datafusion-sqlparser-rs]
Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 merged PR #2643:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2643
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Parser: Fix array suffixes after a `>>` that closes two nested types [datafusion-sqlparser-rs]
Posted by "kdn36 (via GitHub)" <gi...@apache.org>.
kdn36 commented on PR #2643:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2643#issuecomment-6215427178
fuzz failure seems unrelated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Parser: Fix array suffixes after a `>>` that closes two nested types [datafusion-sqlparser-rs]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #2643:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2643#issuecomment-6215108579
## [Codecov](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2643?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 81.20%. Comparing base ([`f1854e4`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/f1854e47e463bbe8cd2f7c08fb008b7ced268598?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`769be4a`](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/commit/769be4a1212d1ec497bc828115f8cfd5197e7e02?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #2643 +/- ##
=======================================
Coverage 81.20% 81.20%
=======================================
Files 42 42
Lines 33894 33894
Branches 33894 33894
=======================================
Hits 27524 27524
Misses 2796 2796
Partials 3574 3574
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion-sqlparser-rs/pull/2643?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] Parser: Fix array suffixes after a `>>` that closes two nested types [datafusion-sqlparser-rs]
Posted by "LucaCappelletti94 (via GitHub)" <gi...@apache.org>.
LucaCappelletti94 commented on PR #2643:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2643#issuecomment-6219221779
> fuzz failure seems unrelated
Yeah ClusterFuzzLite is acting up, I will have to see what I can do about it. Will review PR shortly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org