Skip to content

Conversation

@samarthjain
Copy link
Collaborator

No description provided.

@rdblue
Copy link
Contributor

rdblue commented Jun 3, 2020

I just ran a test with non-dictionary data using all supported primitives and 100 million records and it passed. That, combined with mostly good coverage gives me a lot of confidence that this is (mostly) correct. Nice work, @samarthjain!

@rdblue
Copy link
Contributor

rdblue commented Jun 5, 2020

Looks like the failures are checkstyle violations:

> Task :iceberg-spark:checkstyleMain
[ant:checkstyle] [ERROR] /home/travis/build/apache/iceberg/spark/src/main/java/org/apache/iceberg/spark/data/vectorized/VectorizedSparkParquetReaders.java:22:1: Use org.apache.iceberg.relocated.* classes from bundled-guava module instead. [BanUnrelocatedGuavaClasses]
[ant:checkstyle] [ERROR] /home/travis/build/apache/iceberg/spark/src/main/java/org/apache/iceberg/spark/data/vectorized/VectorizedSparkParquetReaders.java:23:1: Use org.apache.iceberg.relocated.* classes from bundled-guava module instead. [BanUnrelocatedGuavaClasses]
[ant:checkstyle] [ERROR] /home/travis/build/apache/iceberg/spark/src/main/java/org/apache/iceberg/spark/data/vectorized/VectorizedSparkParquetReaders.java:24:1: Use org.apache.iceberg.relocated.* classes from bundled-guava module instead. [BanUnrelocatedGuavaClasses]
[ant:checkstyle] [ERROR] /home/travis/build/apache/iceberg/spark/src/main/java/org/apache/iceberg/spark/source/BatchDataReader.java:22:1: Use org.apache.iceberg.relocated.* classes from bundled-guava module instead. [BanUnrelocatedGuavaClasses]
[ant:checkstyle] [ERROR] /home/travis/build/apache/iceberg/spark/src/main/java/org/apache/iceberg/spark/source/Reader.java:22:1: Use org.apache.iceberg.relocated.* classes from bundled-guava module instead. [BanUnrelocatedGuavaClasses]

@samarthjain samarthjain force-pushed the vectorized-spark-diff branch 5 times, most recently from a3dd1ce to 3c9cc06 Compare June 12, 2020 23:14
}

protected int getNumRows() {
return NUM_ROWS;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why make this a method? So it can be overridden?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@samarthjain samarthjain force-pushed the vectorized-spark-diff branch 4 times, most recently from 951812f to 2fed825 Compare June 13, 2020 07:53
Summary of changes:
1) Below new test cases added:
   - Test for code path when optional values are mostly null
   - Test for case when containers are not reused for every batch
   - Test for case to verify arrow's validity vector is set correctly when setArrowValidityVector = true
2) Reuse container logic is now similar to row based read path
3) We now always set the nullability holder. Arrow validity vector is set only for purpose of supplying complete arrow vectors when requested to do so.
@samarthjain samarthjain force-pushed the vectorized-spark-diff branch from 2fed825 to 24161c7 Compare June 15, 2020 07:30
@rdblue rdblue merged commit ffdcf09 into apache:master Jun 15, 2020
@rdblue
Copy link
Contributor

rdblue commented Jun 15, 2020

Thanks for all the hard work, @samarthjain! I think this is ready to merge.

@rdblue rdblue added this to the Vectorized Read milestone Jun 22, 2020
cmathiesen pushed a commit to ExpediaGroup/iceberg that referenced this pull request Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants