Skip to content

Converting a Table to Tuples would cause type mismatch #2068

Closed

Description

@Yicong-Huang

In Python UDF, we convert an output Table into a collection of Tuple instances in order to send the data to the next operator. Since a Table is really a pandas.DataFrame, to iterate each row of data, we first convert each row in the Table(DataFrame) to a pandas.Series, and then convert the Series into a Tuple. However, when converting a Series to a Tuple, it may lose type information, and all the fields in the Series will be converted to the same type, which is causing schema mismatching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions