Skip to content

Conversation

@mohit10verma
Copy link

…edin/transport/issues/120

Build the examples folder transportable-udfs-examples to see the error after applying this patch.

@Override
public StdStruct eval(StdStruct myStruct) {
int currVal = ((StdInteger) myStruct.getField(0)).get();
myStruct.setField(0, getStdFactory().createInteger(currVal + 1));
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you try

(using field_name instead of field index) and see if the same issue persists?

Copy link
Author

Choose a reason for hiding this comment

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

I don't think transport UDFs test framework lets users create structs with named fields. You can try that and let me know if I am mistaken.

Copy link
Author

Choose a reason for hiding this comment

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

I tried fixing this in a totally different PR here: #119

But this issue is independent.

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