Skip to content

Reject a schema inference result whose every column name is empty - #120509

Open
groeneai wants to merge 11 commits into
ClickHouse:masterfrom
groeneai:fix-schema-inference-all-empty-column-names
Open

groeneai wants to merge 11 commits into
ClickHouse:masterfrom
groeneai:fix-schema-inference-all-empty-column-names

Conversation

@groeneai

@groeneai groeneai commented Sep 17, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed Code: 1001, std::out_of_range: vector when reading a TSV or CSV input whose detected header is entirely empty column names, such as SELECT * FROM format(CSV, '""\n42\n'); debug and sanitizer builds aborted on it instead of returning the error. Such input is now rejected with CANNOT_EXTRACT_TABLE_STRUCTURE, and DESCRIBE no longer silently reports zero columns. The structure published to the schema cache is filtered the same way, so a later read of the same file is no longer served an unnamed column.

Description

The emptiness guard in readSchemaFromFormatImpl runs before the filter that drops empty-named columns, so a result whose names are all empty returns a zero-column structure, and RowInputFormatWithNamesAndTypes::readPrefix() then evaluates data_types.at(0) on an empty vector. On master, #126591 skips that call under header detection, so the read fails with EMPTY_LIST_OF_COLUMNS_PASSED and DESCRIBE still reports zero columns.

Header detection causes it: readNamesFromFields unescapes the first row, and both CSV "" and TSV \N unescape to "".

On stable 26.8.6.5:

SELECT * FROM format(CSV, '""\n42\n');  -- Code: 1001. std::out_of_range: vector
DESCRIBE format(CSV, '""\n42\n');       -- succeeds, reports ZERO columns

std::out_of_range is a std::logic_error, which debug and sanitizer builds treat as an assertion failure; that is how CI hit it (report).

The check goes after the erase, at the producer not the crash site, so one hunk covers all seven RowInputFormatWithNamesAndTypes instantiations.

The cache was written before the erase, so a second read of the same file() returned one unnamed column, which aborted the server in ASTIdentifier. #125134 now filters a default-mode hit, but a hit still skips the new check and union mode uses cached columns as is, so both cache writes now publish the filtered list. union mode now merges the filtered list too, so files disagreeing on an empty-named column's type no longer fail with TYPE_MISMATCH.

Five callers (StorageFile, StorageURL, their *Cluster twins and StorageObjectStorage) run inference only to learn the format and already have an explicit structure, so they now ask for the format only.

Validation: the new test fails on master (before #126591 it killed a debug server) and passes with the fix; 50/50 randomized green; 249 related tests show no difference from master.


Workflow [PR]
Sync PR [sync-upstream/pr/120509]

groeneai and others added 6 commits September 16, 2026 21:14
readSchemaFromFormatImpl rejects an empty inference result at
ReadSchemaUtils.cpp:507, but the filter that drops columns with empty
names runs 36 lines later, at :542-545, and the return at :547 is
unchecked. An inference result in which every column name is empty
therefore passes the guard as non-empty and is returned as a zero-column
ColumnsDescription.

TableFunctionFormat::parseData builds the input-format header from that
empty structure, FormatFactory::getInputImpl has no zero-column guard,
and RowInputFormatWithNamesAndTypes::readPrefix() then evaluates
data_types.at(0) on an empty vector. std::out_of_range is a
std::logic_error, so getCurrentExceptionMessageAndPattern routes it to
abortOnFailedAssertion on a build with abort_on_logical_error (server
abort, which is how the AST fuzzer surfaced it) and returns
Code: 1001 STD_EXCEPTION to the user otherwise.

Header detection is how an all-empty-names header arises:
readNamesFromFields unescapes the first row, and both CSV "" and TSV \N
unescape to the empty string. On stable 26.8.6.5,
SELECT * FROM format(CSV, '""\n42\n') returns Code: 1001 and
DESCRIBE on the same input succeeds while reporting zero columns.

Add the missing emptiness check immediately after the erase. This is the
producer rather than the crash site, so one hunk covers all seven
RowInputFormatWithNamesAndTypes instantiations, and every downstream
consumer already treats "no structure" as CANNOT_EXTRACT_TABLE_STRUCTURE.
A guard in RowInputFormatWithNamesAndTypes would instead treat the
symptom, and its precondition would be state that is already corrupt.

Only columns whose name is empty are still dropped, and header detection
is unchanged; both are pinned as controls in the new test, along with the
single-row case that is never treated as a header.

Co-Authored-By: Claude Opus 5 <[email protected]>
readSchemaFromFormatImpl checks for an empty inference result 36 lines
before the filter that drops empty-named columns, and the return after
that filter is unchecked. A header whose names all unescape to the empty
string therefore passes the check and comes back as a zero-column
structure, so RowInputFormatWithNamesAndTypes::readPrefix() evaluates
data_types.at(0) on an empty vector. That is std::out_of_range, which
derives from std::logic_error, so a debug or sanitizer build turns it
into an abort; a release build returns Code: 1001 and answers DESCRIBE
with no columns at all. Header detection produces the input: both CSV ""
and TSV \N unescape to the empty string.

The check goes at the producer rather than the crash site, so one place
covers every RowInputFormatWithNamesAndTypes instantiation and that file
is untouched.

The same unfiltered list is also published to the per-storage schema
cache, and a cache hit is handed back verbatim, so a second read of the
same file() bypassed both the filter and the new check: it returned one
unnamed column, and reading that column aborted the server at
chassert(!part.empty()) in ASTIdentifier, reached through
ColumnNode::toASTImpl. Both cache writes now publish the filtered list
and skip the write when nothing survives it. They copy the list instead
of mutating it, so UNION-mode accumulation and format adoption in the
detection loop are unaffected.

Four callers run inference only to learn the detected format and discard
the columns, because they already hold an explicit structure: StorageFile
and StorageURL when the engine or table function was given a structure
and format auto, StorageFileCluster, and StorageObjectStorage through
resolveFormatFromData. For them an inferred structure that is unusable on
its own is not an error, and rejecting it would fail a query that did
supply a structure and then advise the user to supply one. They pass
structure_is_required = false; the parameter defaults to true, so every
other call site is unchanged.

The regression test covers both readers the CI history shows, the
cached-read path, and the format-only path. It needs a one second sleep
because SchemaCache::tryGetImpl invalidates an entry when the file's
modification time is not strictly older than the entry's registration
second, which would otherwise make the cached-read assertions pass
without ever consulting the cache.

Co-Authored-By: Claude Opus 5 <[email protected]>
Two follow-ups to the previous commit, both the second half of a pair it
changed on one side only.

StorageURLCluster is a fifth caller that runs inference only to learn the
detected format, structurally identical to StorageFileCluster: the same
else branch of if (columns_.empty()), the same consumption of .second
alone. It was missed because structure_is_required defaults to true, so
omitting the argument opts into the rejection and nothing fails to build.
The effect was that urlCluster(cluster, url, auto, 'a Nullable(Int64)')
over data whose inferred names are all empty was rejected and told to
specify the structure manually, for a query that did supply one. The
enumeration behind the previous commit was rerun over src, programs and
utils and classified by how each site consumes the returned pair; five
sites want the format only and all five now ask for it.

The previous commit also claimed that copying the list at the two cache
writes left UNION-mode accumulation unaffected. That was wrong. A cache
hit contributes cached_columns->getAll(), which those writes had made
filtered, while a freshly inferred file contributed names_and_types,
which is not; the merge keys on column name and raises TYPE_MISMATCH when
two files disagree on a type, and empty names are dropped only after the
merge. So a glob over a mix of named and empty-named files could fail on
a cold cache and succeed on a warm one. Both fresh-read sites now
contribute the same filtered list, which also means UNION mode no longer
raises TYPE_MISMATCH over a column named "" that it was about to drop.

The filter deliberately stays where it is. The format-detection loop uses
an empty inferred schema to decide that a candidate format did not match,
both in the skip at the top of the loop and in the comparison that picks
the format with the most columns, so filtering earlier would silently
reclassify an all-empty-name file as some other format.

The test gains four assertions. Two read system.schema_inference_cache
directly, because every existing cache assertion expects exactly what a
fresh inference returns and so cannot tell a hit from a miss; the count
of cached entries is restricted to a non-null schema because
setNumRowsToLastFile still records a row count for a file whose structure
is not cached. Two more read a two-file glob under
schema_inference_mode = 'union' twice, cold and warm. That pair needs
JSONColumns with the format passed explicitly: JSONColumns retains empty
JSON keys and supports reading a subset of columns, so union mode accepts
it, while an extension-less path never reaches the cache lookup and CSV is
refused by union mode outright. The two files share only the empty name,
as Nullable(Int64) against Array(Nullable(Int64)), a pair the JSON type
transform cannot unify, so an unfiltered contribution collides. The last
assertion reads the format-only fixture through fileCluster, since the
existing one covers only one of the five format-only call sites.

Co-Authored-By: Claude Opus 5 <[email protected]>
Fix round r3. Corrects a claim made in the r2 commit message.

The r2 message said that filtering both UNION accumulation sites had no
net effect on behaviour, "the final column set is unchanged (the union
was filtered at :559 anyway)". That is false in the all-empty case, and
the defect it hid is the same shape as the bug this PR fixes, one guard
further down: a filter that now runs before an emptiness guard which was
written for a different reason.

With both UNION pushes filtered, a set of files whose every inferred
name is empty merges to an empty names_and_types, and the generic "no
file yielded a schema" guard fires unconditionally, before the gate that
consults structure_is_required. So all five format-only callers were
rejected under schema_inference_mode='union' and told to specify a
structure they had already supplied, which is the regression class the
structure_is_required gate exists to prevent; and the structure-required
caller lost its specific message for the generic one with an empty error
list, since exception_messages is empty when no file failed.

Gate that guard on being in UNION mode with a non-empty accumulator, so
control falls through to the existing rejection site, which is correct in
both directions. The predicate is exact: in UNION mode a file that fails
inference throws immediately, and an empty file throws earlier still, so
a non-empty accumulator means every processed file was inferred
successfully. An empty merge then means every contribution carried only
empty names, which is precisely "all inferred column names are empty".
When the accumulator is itself empty no file was processed at all, and
the generic message stays correct and still fires. removeColumnsWithEmpty
Names is a no-op on an already-empty list, so nothing else moves, and the
filter is deliberately still not moved earlier: the detection loop uses
an empty inferred schema to decide that a candidate format did not match.

Measured on three binaries: the union format-only read answers 0 on
pristine master, Code 636 on the previous revision of this PR, and 0
again here; the two-file glob does the same through the other branch of
the guard; default mode is unchanged.

The test gains the union format-only assertion, which reddens on the
previous revision, and two query_log assertions proving that a read meant
to be warm really consumed a cached structure. Without them the repeated
reads could silently decay into repeated cold reads and keep matching,
which would quietly disable the cold-versus-warm pair added in r2. Both
were shown to fail under schema_inference_use_cache_for_file=0.
readSchemaFromFormatImpl publishes columns into the schema cache from two
places: the known-format path, and the branch that detects the format from
the file contents. Which one a fixture reaches is decided by its name, and
every cache assertion in the test reached only the first: the two .csv
fixtures carry an extension the iterator resolves a format from, and the
union fixtures are read with an explicit 'JSONColumns'. The extension-less
fixture is the only one whose format is detected from the bytes, and it was
described once for its rejection and then read only through consumers that
take the detected format name and discard the inferred columns. Dropping the
filter from the detection branch therefore left every assertion in the file
matching, while the structure published to the cache carried an unnamed
column again.

Assert that the detection branch publishes nothing carrying an empty name.
The assertion is on the write rather than on a later read, so it does not
depend on a file's mtime falling in an earlier second than the registration
time of its cache entry, and it cannot decay into a check that passes
because the cache was never consulted.

Measured: on pristine master the count is 1 and the stored schema is
" Nullable(Int64)", a leading space where the name should be; here it is 0.
Forcing that one writer back to publishing the unfiltered list fails the
test on exactly one line, 0 against 2, with every other statement
byte-identical, so the new assertion is neither vacuous nor over-broad.
Collapse the structure_is_required note in ReadSchemaUtils.h to a one-line parameter contract.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-master PR origin: master/nightly CI monitoring finding labels Sep 17, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Two independent passes per round over five rounds raised thirty items: four blockers and seven majors, all
fixed below, two further major candidates dropped after they failed to reproduce, and nits. The final round
raised no blocker and no major.

❌ The schema cache was written before the new rejection, so a first read of a file() source raised
CANNOT_EXTRACT_TABLE_STRUCTURE while a second was served one unnamed column from the cache and aborted a
debug server in ASTIdentifier. Fixed: both cache writes publish the same filtered list the caller
receives, and nothing is cached when no column survives.

❌ The rejection reached callers that only wanted the detected format: five sites that already hold an
explicit structure. StorageURLCluster was missed in round 1 because the suppressing parameter is
defaulted, so an omission is invisible to the compiler. All five now ask for the format only.

❌ UNION inference contributed different columns cold and warm, so an empty-named column joined the
merge only on a cold cache, where the merge can raise TYPE_MISMATCH. Fixed by pushing the filtered list on
both paths; the filter is deliberately not moved earlier, because the format-detection loop uses an empty
inferred schema to decide that a candidate format did not match.

❌ That fix reintroduced the rejection one guard further down (round 3): under
schema_inference_mode = 'union' a set of files whose every inferred name is empty merges to nothing, and
the older "no file yielded a schema" guard fired before the format-only exemption was consulted. Fixed at
the guard, so both inference modes reach the single rejection site. Deliberate consequence: if one file
stops on an inference limit while every other yields only empty names, the error now names the empty names
rather than repeating the limit hint.

⚠️ Only one of the two schema-cache writers was pinned by a test (rounds 1 and 4): which writer a read
uses depends on whether the format came from the extension or from the bytes. The extension-less fixture now
asserts its own cached entry, which on unpatched master answers 1 with the schema " Nullable(Int64)", a
leading space where the name should be.

⚠️ The test could not see the cache path (round 1): every assertion used format(), which never caches.
Added file() cases that read the same source twice.

⚠️ The cache assertions could not tell a hit from a miss (rounds 2 and 3): they now assert the stored
entry through system.schema_inference_cache and a consumed hit through the query-scoped
SchemaInferenceCacheSchemaHits profile event.

⚠️ The format-only path was tested at one call site and in one inference mode (rounds 2 and 3), which is
why the missed caller and the round-3 blocker survived a green suite; cluster and union-mode coverage
added. Residual, stated plainly: urlCluster and object storage stay uncovered by construction, because a
stateless SQL test cannot arrange an HTTP server serving chosen content or an object store.

💡 Scope, so this does not read as more than it is: the accessor that threw reads the read port's header,
not the inferred structure, so an empty read header can reach it by another route. The last comment on the
closed #75229 reports the same line for a read that supplied
its own structure. I fix the inference producer, which is the one CI hit here, and make no claim about the
other route.

💡 Nits, all folded in: a control comment stated the wrong reason, and the description understated the caller
audit as four sites. Two items declined: comment volume in the test file is not a defect, and a pre-existing
disagreement between count() answered from cached file metadata and a real subset read is out of this
change's scope and untouched by it.

@clickhouse-gh

clickhouse-gh Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [84234ff]

Summary: ✅


AI Review

Summary

Reviewed commit 84234ffad48669177d8dfa5a58bd6acaa882b692, the PR diff, surrounding inference and cache paths, callers, tests, and all prior discussion. The change rejects inferred schemas containing only empty column names, keeps cached and freshly inferred schemas consistent, and preserves format detection for callers supplying their own structure. No actionable findings.

The new 05218_schema_inference_all_column_names_empty regression passes in the reviewed head’s Fast test report. Full stateless and sanitizer jobs were still pending when checked; no local tests were run.

Final Verdict

✅ Approve — no unresolved findings. No inline review comments were posted.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 17, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, 100%, no randomization: SELECT * FROM format(CSV, '""\n42\n'). Four more shapes reproduce identically, including format(TSV, '\N\n42\n') with format_tsv_null_representation = '<NULL>' (the exact shape CI hit) and a second DESCRIBE file() of the same input, which is served one unnamed column from the schema cache.
b Root cause explained? Yes. The emptiness guard in readSchemaFromFormatImpl (ReadSchemaUtils.cpp:507) runs 36 lines before the filter that drops empty-named columns, so an all-empty-names header yields a zero-column structure and RowInputFormatWithNamesAndTypes::readPrefix() reads data_types.at(0) on an empty vector. readNamesFromFields unescapes the header row, and both CSV "" and TSV \N unescape to ""; the same unfiltered list is published to the schema cache, and a hit is returned verbatim.
c Fix matches root cause? Yes. The check goes at the producer, in the only function that knows the erase happened, not at the crash site: no widened bound, no no-random-* tag, no defensive check masking an upstream bug, and RowInputFormatWithNamesAndTypes.cpp is untouched.
d Test intent preserved / new tests added? New SQL stateless test 05218_schema_inference_all_column_names_empty, 24 assertions: 4 format() defect cases, 4 format() controls, and 11 file()/fileCluster() cases covering the schema-cache path, the format-only carve-out at two of its five call sites in both inference modes, and union mode cold versus warm. Three assertions read system.schema_inference_cache and two read system.query_log, so a silent cache miss cannot pass them. No existing test weakened: 02521_tsv_csv_custom_header_detection, 03302_udf_header_detection and 04545_format_table_function_zero_rows_schema pass 50/50, and the five schema-cache tests behave identically before and after.
e Both directions demonstrated? Yes. The new test kills a debug server built from pristine master (exit 134, Reason: server died 32) with all seven frames of the reported stack plus abortOnFailedAssertion, and is [ OK ] against the fixed binary. Every assertion was measured statement by statement on both binaries, and each round's new assertions were shown to redden rather than merely pass: the content-detection cache oracle answers 1 on pristine base (storing schema: ' Nullable(Int64)', a leading space where the name should be) and 0 with the fix, and forcing that one writer back to publishing unfiltered fails the test on exactly one line (0 -> 2) with every other statement byte-identical.
f Fix is general across code paths? Yes. One hunk at the producer covers all seven RowInputFormatWithNamesAndTypes instantiations, reproduced and fixed through two of them (CSVFormatReader and TabSeparatedFormatReader, the two the CI history shows), and both schema-cache write sites are covered. Re-enumerating every consumer of a zero-column inference result over src/, programs/ and utils/ found five format-only callers, not four: the fifth, StorageURLCluster, was measured rejecting a urlCluster(..., auto, '<explicit structure>') query that did supply a structure, and now asks for the format only like its siblings. Sibling unchecked first-column reads (RawBLOBRowInputFormat.cpp:24, JSONAsStringRowInputFormat.cpp:72/75/185) sit behind a > 1 guard and are unreachable via inference.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes across the reachable surface: three formats (CSV, TSV, and JSONColumns via content detection), two escaping rules ("", \N), with and without a non-default format_tsv_null_representation, single-row versus multi-row input, partial-empty versus all-empty names (both pinned as controls), and cold versus cached inference for each.
h Backward compatible? (maintainer-approved exception only) Yes, after a correction. No setting default changes, so no SettingsChangesHistory.cpp entry and no format versioning, and public signatures stay source-compatible. An earlier revision rejected unconditionally, which broke SELECT * FROM file(..., auto, '<explicit structure>') for a source whose inferred names are all empty; the rejection is now gated on the structure actually being required. The same contract then broke through another door, under schema_inference_mode='union', at a generic emptiness guard that ignores that gate: it is now gated too, and the query is byte-identical to base again, measured on three binaries.
i Invariants and contracts preserved? Yes, and one is established: readSchemaFromFormat no longer returns a zero-column structure to a caller that needs one, and the schema cache can no longer hold a name the returned structure would have dropped. Both union fresh-read sites now contribute the filtered list, so a query can no longer fail on a cold cache and succeed on a warm one, and the generic "no file yielded a schema" guard is gated on union mode with a non-empty accumulator, which is exact because a file that fails inference and an empty file both throw earlier. The filter was deliberately not moved earlier, because the detection loop uses an empty inferred schema to decide that a candidate format did not match. The external schema reader path (Avro, CapnProto, Protobuf) stays out of scope, and no lock, allocation or error-path contract is touched: the new statement throws on an already-computed local vector before any resource is published.

Session id: cron:clickhouse-impl-slot-4:20260917-033800

@clickhouse-gh clickhouse-gh Bot added the comp-formats Input/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.). label Sep 17, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 84234ffad with master 08d8752ac (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

41 translation units recompiled, 372 s compile time in total, 41 of them have a recent master baseline.

Job report

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 1598a54

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (arm_binary, distributed plan, 1/4) / test_storage_nats/test_nats_jet_stream.py::test_nats_restore_failed_connection_without_losses_on_write flaky, lost messages (assert 97083 == 100000); the merged #112828 and #115343 are both ancestors of this head, so the failure happened with both fixes present and neither owns it a fix task is moved to pending (investigating at full effort, fixing-PR link to follow on this PR)
Stress test (arm_msan) / Hung check failed, possible deadlock found hung check in the stress run, cancelled-query hang class; the captured stacks carry INSERT dependency-collection frames (InsertDependenciesBuilder::observePath under collectAllDependencies) #108357 (external, open)

Neither red is caused by this PR: the diff is confined to src/Formats/ReadSchemaUtils.{cpp,h} and
its schema-inference callers, and touches nothing under tests/integration/test_storage_nats nor any
INSERT write path. 153 checks passed, 18 were skipped, and the workflow aggregator finished at
2026-09-17T09:15Z.

Session id: cron:our-pr-ci-monitor:20260917-093342

@groeneai

Copy link
Copy Markdown
Collaborator Author

Correction to the NATS line of the ledger above, and the fixing-PR link it owed.

#115343 is an ancestor of this head but its code is not: #119270 reverted it on 2026-09-10 (16ecb3c2e735), so this head runs without the reconnect resume. Ancestry was the wrong presence test.

Fixing PR: #119301 (external, open), which re-applies #115343, gated on #120202 pinning the vendored-client fixes behind the master reds that motivated the revert.

Measured on Integration tests (arm_binary, distributed plan, 1/4), the shard carrying every occurrence of this signature: 29 failures in 3502 runs before #115343 merged, 0 in 1387 while it was in the tree, 5 in 1902 since the revert. Details on the issue: #116417

groeneai and others added 5 commits November 4, 2026 13:38
…e-all-empty-column-names

# Conflicts:
#	src/Formats/ReadSchemaUtils.cpp
Master now filters empty names from a schema-cache hit in the default mode, so
the hit is no longer returned verbatim. The write-side filter is still needed:
a hit skips the all-empty check, and the union mode uses cached columns as is.
The default-mode cache-hit filter merged from master now sees entries that the
writers have already filtered, and with that filter in place reading the cached
structure back no longer catches a writer regression on its own; the
system.schema_inference_cache assertions do.
…nly empty column names

Five Arrow IPC stream fuzzer files in `contrib/arrow-testing` have a schema with a
single field named '' (checked with pyarrow). Master drops that column and then
fails with the misleading `INCORRECT_DATA` "A hive partitioned file can't contain
only partition columns"; with this PR schema inference rejects the result with
`CANNOT_EXTRACT_TABLE_STRUCTURE`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e-all-empty-column-names

# Conflicts:
#	src/Storages/StorageURL.cpp
#	src/Storages/StorageURL.h
#	src/Storages/StorageURLCluster.cpp

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-formats Input/output formats (CSV/JSON/Parquet/ORC/Arrow/Protobuf/etc.). groeneai-origin-ci-master PR origin: master/nightly CI monitoring finding pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant