@@ -38,6 +38,7 @@ enum TDataSinkType {
3838 MULTI_CAST_DATA_STREAM_SINK ,
3939 GROUP_COMMIT_OLAP_TABLE_SINK , // deprecated
4040 GROUP_COMMIT_BLOCK_SINK ,
41+ HIVE_TABLE_SINK ,
4142}
4243
4344enum TResultSinkType {
@@ -101,7 +102,7 @@ enum TParquetRepetitionType {
101102struct TParquetSchema {
102103 1: optional TParquetRepetitionType schema_repetition_type
103104 2: optional TParquetDataType schema_data_type
104- 3: optional string schema_column_name
105+ 3: optional string schema_column_name
105106 4: optional TParquetDataLogicalType schema_data_logical_type
106107}
107108
@@ -282,6 +283,7 @@ struct TOlapTableSink {
282283struct THiveLocationParams {
283284 1: optional string write_path
284285 2: optional string target_path
286+ 3: optional Types.TFileType file_type
285287}
286288
287289struct TSortedColumn {
@@ -300,11 +302,16 @@ struct THiveBucket {
300302 4: optional list<TSortedColumn> sorted_by
301303}
302304
303- enum THiveCompressionType {
304- SNAPPY = 3 ,
305- LZ4 = 4 ,
306- ZLIB = 6 ,
307- ZSTD = 7 ,
305+ enum THiveColumnType {
306+ PARTITION_KEY = 0 ,
307+ REGULAR = 1 ,
308+ SYNTHESIZED = 2
309+ }
310+
311+ struct THiveColumn {
312+ 1: optional string name
313+ 2: optional Types.TTypeDesc data_type
314+ 3: optional THiveColumnType column_type
308315}
309316
310317struct THivePartition {
@@ -316,13 +323,14 @@ struct THivePartition {
316323struct THiveTableSink {
317324 1: optional string db_name
318325 2: optional string table_name
319- 3: optional list<string> data_column_names
320- 4: optional list<string> partition_column_names
321- 5: optional list<THivePartition> partitions
322- 6: optional list<THiveBucket> buckets
323- 7: optional PlanNodes.TFileFormatType file_format
324- 8: optional THiveCompressionType compression_type
325- 9: optional THiveLocationParams location
326+ 3: optional list<THiveColumn> columns
327+ 4: optional list<THivePartition> partitions
328+ 5: optional THiveBucket bucket_info
329+ 6: optional PlanNodes.TFileFormatType file_format
330+ 7: optional PlanNodes.TFileCompressType compression_type
331+ 8: optional THiveLocationParams location
332+ 9: optional map<string, string> hadoop_config
333+ 10: optional bool overwrite
326334}
327335
328336enum TUpdateMode {
0 commit comments