1717#pragma once
1818
1919#include " velox/connectors/hive/HiveDataSink.h"
20- #include " velox/connectors/hive/iceberg/PartitionSpec.h"
2120
2221namespace facebook ::velox::connector::hive::iceberg {
2322
@@ -33,45 +32,15 @@ class IcebergInsertTableHandle final : public HiveInsertTableHandle {
3332 // / @param locationHandle Contains the target location information including:
3433 // / - Base directory path where data files will be written.
3534 // / - File naming scheme and temporary directory paths.
36- // / @param tableStorageFormat File format to use for writing data files.
37- // / @param partitionSpec Optional partition specification defining how to
38- // / partition the data. If nullptr, the table is unpartitioned and all data
39- // / is written to a single directory.
4035 // / @param compressionKind Optional compression to apply to data files.
4136 // / @param serdeParameters Additional serialization/deserialization parameters
4237 // / for the file format.
4338 IcebergInsertTableHandle (
4439 std::vector<HiveColumnHandlePtr> inputColumns,
4540 LocationHandlePtr locationHandle,
4641 dwio::common::FileFormat tableStorageFormat,
47- IcebergPartitionSpecPtr partitionSpec,
4842 std::optional<common::CompressionKind> compressionKind = {},
4943 const std::unordered_map<std::string, std::string>& serdeParameters = {});
50-
51- #ifdef VELOX_ENABLE_BACKWARD_COMPATIBILITY
52- IcebergInsertTableHandle (
53- std::vector<HiveColumnHandlePtr> inputColumns,
54- LocationHandlePtr locationHandle,
55- dwio::common::FileFormat tableStorageFormat,
56- std::optional<common::CompressionKind> compressionKind = {},
57- const std::unordered_map<std::string, std::string>& serdeParameters = {})
58- : IcebergInsertTableHandle(
59- inputColumns,
60- locationHandle,
61- tableStorageFormat,
62- nullptr ,
63- compressionKind,
64- serdeParameters) {}
65- #endif
66-
67- // / Returns the Iceberg partition specification that defines how the table
68- // / is partitioned.
69- const IcebergPartitionSpecPtr& partitionSpec () const {
70- return partitionSpec_;
71- }
72-
73- private:
74- const IcebergPartitionSpecPtr partitionSpec_;
7544};
7645
7746using IcebergInsertTableHandlePtr =
0 commit comments