We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found out by debugging that while vaex.expression.Expression.to_arrow return a dataset more than one chunk, like this:
vaex.expression.Expression.to_arrow
<pyarrow.lib.ChunkedArray object at 0x000002109B68A270> [ [ "B-XXXXX", ], [ "C1-XXXXX" ] ]
this exception will be raised. So I try to change function vaex.expression.Expression.__arrow_array__ to
vaex.expression.Expression.__arrow_array__
def __arrow_array__(self, type=None): values = self.to_arrow() try: res = pa.array(values, type=type) except ArrowInvalid as e: values = values.combine_chunks() res = pa.array(values, type=type) return res
And the exception resolved.
So, can i do it like this . Or other method to resovle this problem?
The text was updated successfully, but these errors were encountered:
hi @myloe00 👋
please fill out the bug template including a minimal reproducible example and a full stack trace
Sorry, something went wrong.
No branches or pull requests
I found out by debugging that while
vaex.expression.Expression.to_arrow
return a dataset more than one chunk,like this:
this exception will be raised.
So I try to change function
vaex.expression.Expression.__arrow_array__
toAnd the exception resolved.
So, can i do it like this . Or other method to resovle this problem?
The text was updated successfully, but these errors were encountered: