[
https://issues.apache.org/jira/browse/SPARK-49519?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiayi Liu updated SPARK-49519:
------------------------------
Description:
Currently, the subclass of {{FileTable}} only uses the options from relation
when constructing the {{{}FileScanBuilder{}}}, which leads to the omission of
the contents in {{{}FileTable.options{}}}. For the {{{}TableCatalog{}}}, the
{{dsOptions}} can be set into the {{FileTable.options}} returned by the
{{TableCatalog.loadTable}} method. If only the relation options are used here,
the {{TableCatalog}} will not be able to pass {{dsOptions}} that contains table
options to {{{}FileScan{}}}.
Merge the two options is a better option.
was:
Currently, the {{CSVTable}} only uses the options from {{relation}} when
constructing the {{{}CSVScanBuilder{}}}, which leads to the omission of the
contents in {{{}CSVTable.options{}}}. For the {{{}TableCatalog{}}}, the
{{dsOptions}} can be set into the {{CSVTable.options}} returned by the
{{TableCatalog.loadTable}} method. If only the relation {{options}} are used
here, the {{TableCatalog}} will not be able to pass {{dsOptions}} that contains
CSV options to {{{}CSVScan{}}}.
Combining the two options is a better option.
> Merge options of table and relation when create FileScanBuilder
> ---------------------------------------------------------------
>
> Key: SPARK-49519
> URL: https://issues.apache.org/jira/browse/SPARK-49519
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Jiayi Liu
> Priority: Major
> Labels: pull-request-available
>
> Currently, the subclass of {{FileTable}} only uses the options from relation
> when constructing the {{{}FileScanBuilder{}}}, which leads to the omission of
> the contents in {{{}FileTable.options{}}}. For the {{{}TableCatalog{}}}, the
> {{dsOptions}} can be set into the {{FileTable.options}} returned by the
> {{TableCatalog.loadTable}} method. If only the relation options are used
> here, the {{TableCatalog}} will not be able to pass {{dsOptions}} that
> contains table options to {{{}FileScan{}}}.
> Merge the two options is a better option.
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]