-
Notifications
You must be signed in to change notification settings - Fork 521
[SYSTEMDS-3272] applySchema.dml() builtin #1732
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
Conversation
…a to a given frame
Baunsgaard
left a comment
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.
Close but not quite there yet.
| schema[i] = Types.ValueType.fromExternalString(inBlock2.get(0, i).toString()); | ||
| FrameBlock out = new FrameBlock(schema); | ||
| out.copy(inBlock1); | ||
| out.setSchema(schema); |
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.
I would have liked it to apply it to the data inside the columns, not first copying and then setting the schema.
this implementation just modify metadata you set, not reallocating the columns with the right data.
But on the other hand this is a great start, where we can easily add the functionality inside Frame Block and Arrays.
Do you want to do it ? or should i add that part?
|
Hi @Shafaq-Siddiqi , |
This commit adds the ApplySchema primitive to change the schema of an already allocated FrameBlock in DML. Closes apache#1732
|
Closing, see: #1737 |
This commit adds the ApplySchema primitive to change the schema of an already allocated FrameBlock in DML. Closes apache#1732
This commit adds the ApplySchema primitive to change the schema of an already allocated FrameBlock in DML. Closes apache#1732
This commit adds the ApplySchema primitive to change the schema of an already allocated FrameBlock in DML. Closes apache#1732
This commit adds the ApplySchema primitive to change the schema of an already allocated FrameBlock in DML. Closes apache#1732
which will apply the given schema to a existing frame