Skip to content

Commit

Permalink
fix mistake due to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Liu committed Dec 4, 2023
1 parent e4f1d3a commit 9cd44eb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/common/arrow/arrow_row_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ std::unique_ptr<ArrowVector> ArrowRowBatch::createVector(
templateInitializeVector<LogicalTypeID::DATE>(result.get(), type, capacity);
} break;
case LogicalTypeID::TIMESTAMP_MS: {
templateInitializeVector<LogicalTypeID::TIMESTAMP_MS>(result.get(), typeInfo, capacity);
templateInitializeVector<LogicalTypeID::TIMESTAMP_MS>(result.get(), type, capacity);
} break;
case LogicalTypeID::TIMESTAMP_NS: {
templateInitializeVector<LogicalTypeID::TIMESTAMP_NS>(result.get(), typeInfo, capacity);
templateInitializeVector<LogicalTypeID::TIMESTAMP_NS>(result.get(), type, capacity);
} break;
case LogicalTypeID::TIMESTAMP_SEC: {
templateInitializeVector<LogicalTypeID::TIMESTAMP_SEC>(result.get(), typeInfo, capacity);
templateInitializeVector<LogicalTypeID::TIMESTAMP_SEC>(result.get(), type, capacity);
} break;
case LogicalTypeID::TIMESTAMP_TZ: {
templateInitializeVector<LogicalTypeID::TIMESTAMP_TZ>(result.get(), typeInfo, capacity);
templateInitializeVector<LogicalTypeID::TIMESTAMP_TZ>(result.get(), type, capacity);
} break;
case LogicalTypeID::TIMESTAMP: {
templateInitializeVector<LogicalTypeID::TIMESTAMP>(result.get(), type, capacity);
Expand Down Expand Up @@ -388,16 +388,16 @@ void ArrowRowBatch::copyNonNullValue(
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP>(vector, type, value, pos);
} break;
case LogicalTypeID::TIMESTAMP_TZ: {
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_TZ>(vector, typeInfo, value, pos);
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_TZ>(vector, type, value, pos);
} break;
case LogicalTypeID::TIMESTAMP_NS: {
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_NS>(vector, typeInfo, value, pos);
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_NS>(vector, type, value, pos);
} break;
case LogicalTypeID::TIMESTAMP_MS: {
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_MS>(vector, typeInfo, value, pos);
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_MS>(vector, type, value, pos);
} break;
case LogicalTypeID::TIMESTAMP_SEC: {
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_SEC>(vector, typeInfo, value, pos);
templateCopyNonNullValue<LogicalTypeID::TIMESTAMP_SEC>(vector, type, value, pos);
} break;
case LogicalTypeID::INTERVAL: {
templateCopyNonNullValue<LogicalTypeID::INTERVAL>(vector, type, value, pos);
Expand Down Expand Up @@ -704,16 +704,16 @@ ArrowArray* ArrowRowBatch::convertVectorToArray(ArrowVector& vector, const Logic
return templateCreateArray<LogicalTypeID::DATE>(vector, type);
}
case LogicalTypeID::TIMESTAMP_MS: {
return templateCreateArray<LogicalTypeID::TIMESTAMP_MS>(vector, typeInfo);
return templateCreateArray<LogicalTypeID::TIMESTAMP_MS>(vector, type);
}
case LogicalTypeID::TIMESTAMP_NS: {
return templateCreateArray<LogicalTypeID::TIMESTAMP_NS>(vector, typeInfo);
return templateCreateArray<LogicalTypeID::TIMESTAMP_NS>(vector, type);
}
case LogicalTypeID::TIMESTAMP_SEC: {
return templateCreateArray<LogicalTypeID::TIMESTAMP_SEC>(vector, typeInfo);
return templateCreateArray<LogicalTypeID::TIMESTAMP_SEC>(vector, type);
}
case LogicalTypeID::TIMESTAMP_TZ: {
return templateCreateArray<LogicalTypeID::TIMESTAMP_TZ>(vector, typeInfo);
return templateCreateArray<LogicalTypeID::TIMESTAMP_TZ>(vector, type);
}
case LogicalTypeID::TIMESTAMP: {
return templateCreateArray<LogicalTypeID::TIMESTAMP>(vector, type);
Expand Down

0 comments on commit 9cd44eb

Please sign in to comment.