Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Literal should support 1-dim ndarray

Why are the changes needed?

parity

Does this PR introduce any user-facing change?

yes

How was this patch tested?

enabled UT

if _from_numpy_type(col.dtype) is None:
raise TypeError("The type of array scalar '%s' is not supported" % (col.dtype))

# NumpyArrayConverter for Py4J can not support ndarray with int8 values.
Copy link
Contributor Author

@zhengruifeng zhengruifeng Jan 14, 2023

Choose a reason for hiding this comment

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

@HyukjinKwon
Copy link
Member

cc @xinrong-meng

@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the connect_lit_ndaray branch January 16, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants