Closed ztomanek-dw closed 9 months ago
@cgivre Thanks for your feedback!
According to your comments:
HttpCSVOptions
HttpApiConfig
, by the way fixing small bug on HttpMethod
validationTestHttpPlugin
csvOptions
configuration in CSV_Options.md
Let me know if you see anything else to cover :)
@cgivre Thanks for the clarification, I was not sure if I could push multiple commits per one jira issue. I've applied your suggestions and made sure it's rebased to current master
DRILL-8457: Allow configuring csv parser in http storage plugin configuration
Description
HttpApiConfiguration was extended with
csvOptions
field which allows setting a following properties:this provides greater csv parsing flexibility since user can set different delimiters, number of columns or max column size.
Also backward compatibility is ensured and parser works same as before if
csvOptions
is null.Documentation
Add a following paragraph into https://drill.apache.org/docs/http-storage-plugin/#configuring-the-api-connections
CSV parser options
CSV parser of HTTP Storage plugin can be configured using
csvOptions
.E.g. to parse
.tsv
files you can use a following config:Testing
Create a following storage plugin with name
github
Then query tsv file with
You should see a result set containing three columns