You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Asura7969 (via GitHub)" <gi...@apache.org> on 2023/11/23 07:44:36 UTC
[I] Add `quote` & `escape` for create external table [arrow-datafusion]
Asura7969 opened a new issue, #8310:
URL: https://github.com/apache/arrow-datafusion/issues/8310
### Is your feature request related to a problem or challenge?
1、Add `quote` & `escape` for create external table
2、In addition, the DELIMITER attribute is only used in csv. Can it also be moved to option?
### Describe the solution you'd like
```sql
CREATE EXTERNAL TABLE custom(
c1 VARCHAR DEFAULT NULL,
c2 VARCHAR DEFAULT NULL
)
STORED AS CSV
WITH HEADER ROW
OPTIONS ('delimiter' ',','read.escape' '\', 'read.quote' '~')
LOCATION 'custom.csv';
```
> `read.escape` & `read.quote` from https://github.com/apache/arrow-datafusion/pull/8251 comment
### Describe alternatives you've considered
No
### Additional context
ref: https://github.com/apache/arrow-datafusion/pull/8251
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `quote` & `escape` for create external table [arrow-datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8310: Add `quote` & `escape` for create external table
URL: https://github.com/apache/arrow-datafusion/issues/8310
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add `quote` & `escape` for create external table [arrow-datafusion]
Posted by "Asura7969 (via GitHub)" <gi...@apache.org>.
Asura7969 commented on issue #8310:
URL: https://github.com/apache/arrow-datafusion/issues/8310#issuecomment-1831050489
For this, I will do 3 things:
* 1、Add `quote` & `escape` attributes to **OPTIONS**.
* 2、delimiter will not be moved to **OPTIONS**.
* 3、`quote` & `escape` will not change to `read.escape` & `read.quote`
> for 2 & 3: I'm not sure if it will cause trouble to users,so keep it as is
final:
```sql
CREATE EXTERNAL TABLE custom(
c1 VARCHAR DEFAULT NULL,
c2 VARCHAR DEFAULT NULL
)
STORED AS CSV
DELIMITER ','
WITH HEADER ROW
OPTIONS ('escape' '\', 'quote' '~')
LOCATION 'custom.csv';
```
If you have better suggestions, please leave a message
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org