Skip to content

Cherry pick #109185 to 26.5: Do not infer Nullable(Tuple) in Arrow, ArrowStream, ORC, Parquet and Avro schema inference unless the type is enabled - #109505

Merged
robot-ch-test-poll3 merged 10 commits into
backport/26.5/109185from
cherrypick/26.5/109185
Jul 6, 2026
Merged

robot-ch-test-poll3 merged 10 commits into
backport/26.5/109185from
cherrypick/26.5/109185

Conversation

@robot-ch-test-poll2

Copy link
Copy Markdown
Contributor

Original pull-request #109185

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

@robot-ch-test-poll2 robot-ch-test-poll2 added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default labels Jul 6, 2026
@nihalzp

nihalzp commented Jul 6, 2026

Copy link
Copy Markdown
Member

@copilot resolve the merge conflicts in this pull request

Copilot AI added 2 commits July 6, 2026 15:41
Resolve unrelated histories: take backport/26.5/109185 content for all format-related files.
File tests/queries/0_stateless/04262_skip_first_lines_with_names_schema_cache.reference
does not exist in 26.5 (number taken by another test).
…d Avro schema inference unless the type is enabled

Cherry-pick of #109185 to 26.5.

Without `allow_experimental_nullable_tuple_type`, schema inference for Arrow, ArrowStream, ORC, Parquet,
and Avro formats must not infer `Nullable(Tuple)` for nullable struct/record columns, because
`CREATE TABLE` rejects that type by default. Instead, the struct null map is propagated
into the tuple elements as it worked before `Nullable(Tuple)` was supported.

Also adds `schema_inference_allow_nullable_tuple_type` to the schema inference cache keys
for all row-based formats, Arrow, ArrowStream, ORC, and Avro/AvroConfluent.

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Resolved. The branch cherrypick/26.5/109185 was pointing to the master merge commit 8fee341ed instead of being based on backport/26.5/109185, causing the dirty mergeable state.

Fixed by merging backport/26.5/109185 into cherrypick/26.5/109185 (resolving all conflicts in favor of the backport content), then applying the proper cherry-pick changes on top. The PR is now mergeable_state: clean and the diff shows only the 15 files changed by PR #109185 (adapted for 26.5).

Copilot AI requested a review from nihalzp July 6, 2026 15:43
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ Avogar
✅ nihalzp
❌ Copilot
You have signed the CLA already but the status is still pending? Let us recheck it.

@robot-ch-test-poll3
robot-ch-test-poll3 merged commit 60d3718 into backport/26.5/109185 Jul 6, 2026
1 check passed
@robot-ch-test-poll3
robot-ch-test-poll3 deleted the cherrypick/26.5/109185 branch July 6, 2026 16:46
@nihalzp nihalzp removed the pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants