Skip to content

"Physical input schema should be the same as the one converted from logical input schema." error does not display metadata differences #19069

@erratic-pattern

Description

@erratic-pattern

Describe the bug

When logical and physical schema metadata mismatch, the error message does not show the metadata differences.

Example:

Error while planning query: Internal error: Physical input schema should be the same as the one converted from logical input schema. Differences: .

The Differences: . is confusing because it does not show any differences.

To Reproduce

Execute a query on a parquet file with metadata and skip_metadata = false where the physical/logical metadata do not match.

Examples of issues with reproducers:
#19049
#18337

Expected behavior

Error message should show metadata differences.

Additional context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions