Skip to main content
xiaohai
Bronze ⭐️⭐️⭐️
Oct 24, 2024 3:24 AM UTC
Question

impala-shell Command-Line Option has a problem with the [--output_delimiter=character]

Specifies the character to use as a delimiter between fields when query results are printed in plain format by the -B option. Defaults to tab ('\t'). If an output value contains the delimiter character, that field is quoted, escaped by doubling quotation marks, or both. Added in Impala 1.0.1.

My  output value contains  some ('\t'),So,I tried using  \`field\` OR “field” and so on,  But all of  them doesn't work.Does anyone know how to solve it?

Impala Shell v3.4.0-SNAPSHOT

2 replies

VidyaSargur
Community Manager
Community Manager
Oct 24, 2024 5:29 AM UTC

@xiaohai, Welcome to our community! To help you get the best possible answer, I have tagged in our Impala experts @ChethanYM @willx  who may be able to assist you further.

Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.

Translate
Regards, Vidya Sargur Madabhushi| Senior Community Manager | Was your question answered? Make sure to mark the answer as the Best Answer. If you find a reply useful, say thanks by clicking on the thumbs up button.
ChethanYM
Gold ⭐️
Gold ⭐️
Nov 22, 2024 6:29 AM UTC

Hi @xiaohai 

>What is the error you are seeing?

>can you use this delimiter?

impala-shell -B --output_delimiter='|' -q 'SELECT * FROM your_table'

 

Regards,

Chethan YM

Translate