You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2019/08/12 23:48:26 UTC
[GitHub] [incubator-iceberg] xabriel opened a new pull request #372: Allow
read split behavior overrides
xabriel opened a new pull request #372: Allow read split behavior overrides
URL: https://github.com/apache/incubator-iceberg/pull/372
Iceberg exposes the following read path properties as of today:
`read.split.target-size`
`read.split.planning-lookback`
`read.split.open-file-cost`
However, these properties must be set at the `Table.properties()` level to be effective.
In this PR, we allow these read flags to override behavior of a `Scan` object:
```java
TableScan scan = table.newScan()
.splitOptions(
new SplitOptions()
.splitSize(256L * 1024 * 1024));
```
They can also be passed in as a `DataFrameReader` option:
```java
Dataset<Row> resultDf = spark.read()
.format("iceberg")
.option(TableProperties.SPLIT_SIZE, String.valueOf(256L * 1024 * 1024))
.load(tableLocation);
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org