-
Notifications
You must be signed in to change notification settings - Fork 240
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
Add recursive type checking and fallback tests for casting array with unsupported element types to string #4449
Add recursive type checking and fallback tests for casting array with unsupported element types to string #4449
Conversation
add Map to unsupported element types in IT replace xfail by fallback when casting unsupported types to string in IT Signed-off-by: remzi <13716567376yh@gmail.com>
build |
ARRAY + BINARY + STRUCT + MAP) + | ||
psNote(TypeEnum.ARRAY, "The array's child type must also support being cast to " + | ||
"the desired child type") | ||
psNote(TypeEnum.ARRAY, "The array's children must also support being cast to the " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The array type has only one child type. So child type
is good enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great catch/fix. Just a minor nit
@@ -124,6 +124,9 @@ final class CastExprMeta[INPUT <: CastBase]( | |||
case (fromChild, toChild) => | |||
recursiveTagExprForGpuCheck(fromChild.dataType, toChild.dataType, depth + 1) | |||
} | |||
case (ArrayType(element_type, _), StringType) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit element_type
does not follow the convention. Could we make it elementType
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will fix it
Signed-off-by: remzi <13716567376yh@gmail.com>
build |
build |
Signed-off-by: remzi 13716567376yh@gmail.com
close #4446
MapType
into unsupported element types in integration testsXfail
byfallback
when casting unsupported types to string in integration tests