Skip to content

fix(isthmus): index extended expression fields against the combined schema - #1286

Open
alexandrefimov wants to merge 1 commit into
substrait-io:mainfrom
alexandrefimov:issue-1200-expression-field-indices
Open

fix(isthmus): index extended expression fields against the combined schema#1286
alexandrefimov wants to merge 1 commit into
substrait-io:mainfrom
alexandrefimov:issue-1200-expression-field-indices

Conversation

@alexandrefimov

Copy link
Copy Markdown
Contributor

Extended expressions share one base_schema, but references to fields from later tables used indices local to each table. After a three-column table, B2 in a second table was emitted as field 1 instead of field 4.

Build references in the same registration order as the combined schema, following spec v0.102.0.

Closes #1200

…chema

Extended expressions share one `base_schema`, but references to fields from later tables used indices local to each table. After a three-column table, `B2` in a second table was emitted as field 1 instead of field 4.

Build references in the same registration order as the combined schema, following spec v0.102.0.

Closes substrait-io#1200
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.

isthmus: SqlExpressionToSubstrait indexes a column within its own table, so every column outside the first converts to the wrong base-schema field

1 participant