Skip to content

Commit

Permalink
test mac machine
Browse files Browse the repository at this point in the history
  • Loading branch information
AEsir777 committed Oct 18, 2023
1 parent fe39440 commit ce88f28
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/processor/operator/persistent/reader/csv/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,22 +473,30 @@ static bool tryCastUnionField(
case LogicalTypeID::BOOL: {
bool result;
success = function::tryCastToBool(input, len, result);
vector->setValue(rowToAdd, result);
if (success) {
vector->setValue(rowToAdd, result);
}
} break;
case LogicalTypeID::INT64: {
int64_t result;
success = function::trySimpleIntegerCast(input, len, result);
vector->setValue(rowToAdd, result);
if (success) {
vector->setValue(rowToAdd, result);
}
} break;
case LogicalTypeID::INT32: {
int32_t result;
success = function::trySimpleIntegerCast(input, len, result);
vector->setValue(rowToAdd, result);
if (success) {
vector->setValue(rowToAdd, result);
}
} break;
case LogicalTypeID::INT16: {
int16_t result;
success = function::trySimpleIntegerCast(input, len, result);
vector->setValue(rowToAdd, result);
if (success) {
vector->setValue(rowToAdd, result);
}
} break;
case LogicalTypeID::INT8: {
int8_t result;
Expand Down

0 comments on commit ce88f28

Please sign in to comment.