Closed YannngHQ closed 4 weeks ago
@YannngHQ you create external in Hive or StarRocks?
Just for reference, plz take a try here to see if the community has already provided a solution https://starrocks.snowshoe.dev/search?q=hive+catalog+CSV
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!
table format: CREATE EXTERNAL TABLE db.name(
a
string COMMENT 'from deserializer',b
string COMMENT 'from deserializer',c
string COMMENT 'from deserializer') PARTITIONED BY (dt
string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde' WITH SERDEPROPERTIES ( 'escapeChar'='\', 'quoteChar'='"', 'separatorChar'=',', 'serialization.encoding'='GBK') STORED AS INPUTFORMAT 'org.apache.hadoop.mapred.TextInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 'xxx'If the create table statement is specified like this, the specifications of separatorChar and quoteChar do not take effect. Version: 3.1.