Skip to content

Conversation

@Shafaq-Siddiqi
Copy link
Contributor

which will apply the given schema to a existing frame

Copy link
Contributor

@Baunsgaard Baunsgaard left a 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);
Copy link
Contributor

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?

@Baunsgaard Baunsgaard changed the title [SYSTEMDS-XXX] applySchema.dml() builtin [SYSTEMDS-3272] applySchema.dml() builtin Nov 16, 2022
@Baunsgaard
Copy link
Contributor

Hi @Shafaq-Siddiqi ,
I am taking this and add the extension from the comments since i need it for further work.
Thanks for the help!

Baunsgaard pushed a commit to Baunsgaard/systemds that referenced this pull request Nov 25, 2022
This commit adds the ApplySchema primitive to change the schema of
an already allocated FrameBlock in DML.

Closes apache#1732
@Baunsgaard
Copy link
Contributor

Closing, see: #1737

@Baunsgaard Baunsgaard closed this Nov 25, 2022
Baunsgaard pushed a commit to Baunsgaard/systemds that referenced this pull request Nov 28, 2022
This commit adds the ApplySchema primitive to change the schema of
an already allocated FrameBlock in DML.

Closes apache#1732
Baunsgaard pushed a commit to Baunsgaard/systemds that referenced this pull request Dec 9, 2022
This commit adds the ApplySchema primitive to change the schema of
an already allocated FrameBlock in DML.

Closes apache#1732
Baunsgaard pushed a commit to Baunsgaard/systemds that referenced this pull request Dec 10, 2022
This commit adds the ApplySchema primitive to change the schema of
an already allocated FrameBlock in DML.

Closes apache#1732
Baunsgaard pushed a commit to Baunsgaard/systemds that referenced this pull request Dec 10, 2022
This commit adds the ApplySchema primitive to change the schema of
an already allocated FrameBlock in DML.

Closes apache#1732
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.

2 participants