Skip to content
New issue

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

ARROW-8070: [C++] Cast segfaults on unsupported cast from list<binary> to utf8 #6738

Closed
wants to merge 1 commit into from

Conversation

kszucs
Copy link
Member

@kszucs kszucs commented Mar 27, 2020

Return with ArrowInvalid for list<...> => not list casts.

The list(binary()) => utf8() could make sense, but as a concat operation.

@github-actions
Copy link

@@ -1503,19 +1503,18 @@ Status GetCastFunction(const DataType& in_type, std::shared_ptr<DataType> out_ty
CAST_FUNCTION_CASE(LargeStringType);
CAST_FUNCTION_CASE(DictionaryType);
case Type::NA:
cast_kernel.reset(new FromNullCastKernel(std::move(out_type)));
Copy link
Member Author

Choose a reason for hiding this comment

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

Removed move because of the validation below dereferences out_type.

@kszucs kszucs requested a review from bkietz March 27, 2020 13:05
Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

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

+1

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.

None yet

2 participants