We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478c73d commit 00e36b6Copy full SHA for 00e36b6
velox/expression/CastExpr-inl.h
@@ -344,10 +344,11 @@ void CastExpr::applyCastKernel(
344
ToKind == TypeKind::INTEGER || ToKind == TypeKind::BIGINT ||
345
ToKind == TypeKind::HUGEINT) {
346
if constexpr (TPolicy::throwOnUnicode) {
347
- VELOX_USER_CHECK(
348
- functions::stringCore::isAscii(
349
- inputRowValue.data(), inputRowValue.size()),
350
- "Unicode characters are not supported for conversion to integer types");
+ if (!functions::stringCore::isAscii(
+ inputRowValue.data(), inputRowValue.size())) {
+ VELOX_USER_FAIL(
+ "Unicode characters are not supported for conversion to integer types");
351
+ }
352
}
353
354
0 commit comments