Skip to content

Commit

Permalink
[native] Pass serde parameters down to insert table handle
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjialiang committed Oct 29, 2023
1 parent 83b20c0 commit 061c340
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2253,14 +2253,19 @@ VeloxQueryPlanConverterBase::toVeloxQueryPlan(
"Bucketed table must be partitioned: {}",
toJsonString(*hiveInsertTableHandle));

const auto table = hiveInsertTableHandle->pageSinkMetadata.table;
VELOX_USER_CHECK_NOT_NULL(table, "Table must not be null for insert query");
hiveTableHandle = std::make_shared<connector::hive::HiveInsertTableHandle>(
inputColumns,
toLocationHandle(hiveInsertTableHandle->locationHandle),
toFileFormat(hiveInsertTableHandle->tableStorageFormat, "TableWrite"),
toHiveBucketProperty(
inputColumns, hiveInsertTableHandle->bucketProperty),
std::optional(
toFileCompressionKind(hiveInsertTableHandle->compressionCodec)));
toFileCompressionKind(hiveInsertTableHandle->compressionCodec)),
std::unordered_map<std::string, std::string>(
table->storage.serdeParameters.begin(),
table->storage.serdeParameters.end()));
} else {
VELOX_UNSUPPORTED(
"Unsupported table writer handle: {}",
Expand Down

0 comments on commit 061c340

Please sign in to comment.