New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BEAM-2292] PCollection as a Table #3138
Conversation
R: @xumingming |
retest this please |
retest this please |
@xumingming Can you take a look here? |
The only comment i have is: the dataType of the table seems inferable from the rows? Quote from public BaseBeamTable(RelProtoDataType protoRowType) {
this.relDataType = protoRowType.apply(BeamQueryPlanner.TYPE_FACTORY); // table dataType
this.beamSqlRecordType = BeamSQLRecordType.from(relDataType); // rowDataType
} |
Do you mean the parameter of
? |
} | ||
|
||
public BeamPCollectionTable(PCollection<BeamSQLRow> upstream, RelProtoDataType protoRowType){ | ||
this(protoRowType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can the protoRowType
infered from the rows?
LGTM |
@jbonofre can you also take a peak here? |
R: @jbonofre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I'm merging.
Merged on |
Thank you @jbonofre @xumingming |
add BeamPCollectionTable to create table from PCollection
Note that it changes the interface of
BaseBeamTable
, as aBeamPCollectionTable
doesn't start fromPBegin
, returnPCollection<BeamSQLRow>
is more clear: