Skip to content

Move schema as a property of a logical port - #2303

Merged
Yicong-Huang merged 8 commits into
masterfrom
yicong-move-schema-to-port
Jan 23, 2024
Merged

Yicong-Huang merged 8 commits into
masterfrom
yicong-move-schema-to-port

Conversation

@Yicong-Huang

Copy link
Copy Markdown
Contributor

This PR refactors the schema to be a port's property. Temporarily, we will keep mappings from PortIdentity to Schema for all input and output ports of a logical operator. The schema propagation logic is thus simplified.

@Yicong-Huang Yicong-Huang changed the title Let each port has a schema on logical operators Move schema as a property of a logical port Jan 21, 2024
@Yicong-Huang Yicong-Huang self-assigned this Jan 21, 2024
@Yicong-Huang Yicong-Huang added engine refactor Refactor the code labels Jan 21, 2024

@shengquan-ni shengquan-ni left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some minor issues.

@shengquan-ni
shengquan-ni self-requested a review January 23, 2024 00:03
@Yicong-Huang
Yicong-Huang merged commit b0d69fd into master Jan 23, 2024
@Yicong-Huang
Yicong-Huang deleted the yicong-move-schema-to-port branch January 23, 2024 02:00
Yicong-Huang added a commit that referenced this pull request Jan 23, 2024
This PR continues the effort in #2303 by mapping schema to physical
ports. We removed `OperatorSchemaInfo` completely as schema is not a
property of an operator (either logical or physical) anymore.

An assumption here is that some partial operators' output port schemas
are the same as their corresponding global operators' output port
schemas. This assumption is true for all existing operators, as the
global operator usually conducts "reduce" operation only. For partial
hash join implementation (build op + probe op in #2302), the schemas on
the internal ports are to be defined by the developer of hash join.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR refactors the schema to be a port's property. Temporarily, we
will keep mappings from PortIdentity to Schema for all input and output
ports of a logical operator. The schema propagation logic is thus
simplified.
yangzhang75 pushed a commit to yangzhang75/texera that referenced this pull request Jun 22, 2026
This PR continues the effort in apache#2303 by mapping schema to physical
ports. We removed `OperatorSchemaInfo` completely as schema is not a
property of an operator (either logical or physical) anymore.

An assumption here is that some partial operators' output port schemas
are the same as their corresponding global operators' output port
schemas. This assumption is true for all existing operators, as the
global operator usually conducts "reduce" operation only. For partial
hash join implementation (build op + probe op in apache#2302), the schemas on
the internal ports are to be defined by the developer of hash join.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants