Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to respect quoteChar with hive OpenCSVSerde for hive external table #57922

Open
wxl24life opened this issue Apr 11, 2025 · 1 comment
Open
Labels
type/bug Something isn't working

Comments

@wxl24life
Copy link
Contributor

Steps to reproduce the behavior (Required)

Hive table:

CREATE TABLE `hive_temp.demo`(
  `trace_id` string COMMENT 'from deserializer',
  `loan_account_id` string COMMENT 'from deserializer',
  `name` string COMMENT 'from deserializer',
  `mobile_number` string COMMENT 'from deserializer',
  `identity_number` string COMMENT 'from deserializer',
  `status_desc` string COMMENT 'from deserializer',
  `status` string COMMENT 'from deserializer',
  `status_json` string COMMENT 'from deserializer')
ROW FORMAT SERDE
  'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
  'escapeChar'='\\',
  'quoteChar'='"',
  'separatorChar'=',')
STORED AS INPUTFORMAT
  'org.apache.hadoop.mapred.TextInputFormat'
OUTPUTFORMAT
  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'
LOCATION
  'hdfs://yqgcluster/user/hive/warehouse/risk_temp.db/demo'
TBLPROPERTIES (
  'bucketing_version'='2',
  'skip.header.line.count'='1',
  'transient_lastDdlTime'='1744266420')

Expected behavior (Required)

The JSON field status_jsons value can be read successfully by starrocks

Real behavior (Required)

The JSON field status_jsons value is delimited by , separator while reading by starrocks

StarRocks version (Required)

  • 3.3.8
@wxl24life wxl24life added the type/bug Something isn't working label Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
@wxl24life and others