@@ -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
@@ -280,6 +281,7 @@ struct TOlapTableSink {
280281struct THiveLocationParams {
281282 1: optional string write_path
282283 2: optional string target_path
284+ 3: optional Types.TFileType file_type
283285}
284286
285287struct TSortedColumn {
@@ -298,11 +300,16 @@ struct THiveBucket {
298300 4: optional list<TSortedColumn> sorted_by
299301}
300302
301- enum THiveCompressionType {
302- SNAPPY = 3 ,
303- LZ4 = 4 ,
304- ZLIB = 6 ,
305- ZSTD = 7 ,
303+ enum THiveColumnType {
304+ PARTITION_KEY = 0 ,
305+ REGULAR = 1 ,
306+ SYNTHESIZED = 2
307+ }
308+
309+ struct THiveColumn {
310+ 1: optional string name
311+ 2: optional Types.TTypeDesc data_type
312+ 3: optional THiveColumnType column_type
306313}
307314
308315struct THivePartition {
@@ -314,13 +321,14 @@ struct THivePartition {
314321struct THiveTableSink {
315322 1: optional string db_name
316323 2: optional string table_name
317- 3: optional list<string> data_column_names
318- 4: optional list<string> partition_column_names
319- 5: optional list<THivePartition> partitions
320- 6: optional list<THiveBucket> buckets
321- 7: optional PlanNodes.TFileFormatType file_format
322- 8: optional THiveCompressionType compression_type
323- 9: optional THiveLocationParams location
324+ 3: optional list<THiveColumn> columns
325+ 4: optional list<THivePartition> partitions
326+ 5: optional THiveBucket bucket_info
327+ 6: optional PlanNodes.TFileFormatType file_format
328+ 7: optional PlanNodes.TFileCompressType compression_type
329+ 8: optional THiveLocationParams location
330+ 9: optional map<string, string> hadoop_config
331+ 10: optional bool overwrite
324332}
325333
326334enum TUpdateMode {
0 commit comments