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 2021/08/26 07:18:54 UTC
[GitHub] [iceberg] nastra opened a new pull request #3029: Arrow: Add tests for FIXED type support
nastra opened a new pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029
This is a follow up of https://github.com/apache/iceberg/issues/2486. Support for `FIXED` is already existing, so this is adding tests for it.
Note that this PR will be rebased once https://github.com/apache/iceberg/pull/3023 and https://github.com/apache/iceberg/pull/3024 are merged.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] rymurr commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
rymurr commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r742811859
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedColumnIterator.java
##########
@@ -193,16 +193,6 @@ protected int nextBatchOf(
}
}
- public class FixedWidthTypeBinaryBatchReader extends BatchReader {
Review comment:
Maybe I am daft but it looks like you removed fixed width readers but I don't see where you added any readers?
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
So for clarification what is being added here? Fixed width or fixed size? Or are they the same?
Can you clarify your comment on spark as well: fix width already was (partially) handled and now its fully handled?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra removed a comment on pull request #3029: Arrow: Add tests for FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra removed a comment on pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#issuecomment-906264350
CI currently fails due to https://github.com/apache/iceberg/issues/3033
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] RussellSpitzer commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
RussellSpitzer commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732988936
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
I don't know the basics here, so I'm confused why case Fixed with binary is read with Fixed Size Binary, also I don't understand the difference between fixed size and width
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732932159
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/ArrowSchemaUtil.java
##########
@@ -70,9 +70,11 @@ public static Field convert(final NestedField field) {
switch (field.type().typeId()) {
case BINARY:
// Spark doesn't support BYTE(fixed_size) type, so cast it to VarBinary
Review comment:
the comment probably doesn't make sense anymore. removed it
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra closed pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra closed pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra closed pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra closed pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r733393852
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
`FIXED_WIDTH_BINARY` might have been misleading so I renamed it to `FIXED_SIZE_BINARY`. It seems that the `FixedWidthBinary` code path existed as a workaround for Spark as can be seen [here](https://github.com/apache/iceberg/blob/master/arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedPageIterator.java#L365-L383). I checked `TestParquetVectorizedReads` and that seems to be testing the `FIXED` type with Spark+Vectorization https://github.com/apache/iceberg/blob/f3e6770c0506a13c067f506dad266d043819d446/spark/v3.0/spark3/src/test/java/org/apache/iceberg/spark/data/AvroDataTest.java#L60
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] RussellSpitzer commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
RussellSpitzer commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732910093
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/ArrowSchemaUtil.java
##########
@@ -70,9 +70,11 @@ public static Field convert(final NestedField field) {
switch (field.type().typeId()) {
case BINARY:
// Spark doesn't support BYTE(fixed_size) type, so cast it to VarBinary
Review comment:
This seems to be the rational for why we weren't using Fixed before, does this break Spark if we make the change?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on pull request #3029: Arrow: Add tests for FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#issuecomment-906264350
CI currently fails due to https://github.com/apache/iceberg/issues/3033
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#issuecomment-990765599
@kbendick yes this still needs to be reviewed and at this point TBH I'm uncertain the approach is correct or not because I'm not sure if this statement is still correct (https://github.com/apache/iceberg/pull/3029/files#diff-80bc724de9a4dd358c4544fcf00e00139145c6763a5d0280e0bd0793a0fd4003L366-L368):
> Spark does not support fixed width binary data type. To work around this limitation, the data is read as fixed width binary from parquet and stored in a {@link VarBinaryVector} in Arrow.
FWIW the PR itself is not related to the issue that was reported on Slack.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] RussellSpitzer commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
RussellSpitzer commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732967957
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
What is the difference between these two readers?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732974802
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
the difference is in the way stuff is being read: [FixedSizeBinary](https://github.com/apache/iceberg/blob/57477c3f1b7b28c938eebad73b9c9ab3efb924af/arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedParquetDefinitionLevelReader.java#L382-L404) vs [FixedWidthBinary](https://github.com/apache/iceberg/blob/57477c3f1b7b28c938eebad73b9c9ab3efb924af/arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedParquetDefinitionLevelReader.java#L333-L356)
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
[GitHub] [iceberg] nastra commented on a change in pull request #3029: Arrow: FIXED type support
Posted by GitBox <gi...@apache.org>.
nastra commented on a change in pull request #3029:
URL: https://github.com/apache/iceberg/pull/3029#discussion_r732974802
##########
File path: arrow/src/main/java/org/apache/iceberg/arrow/vectorized/VectorizedArrowReader.java
##########
@@ -150,7 +150,7 @@ public VectorHolder read(VectorHolder reuse, int numValsToRead) {
vectorizedColumnIterator.varWidthTypeBatchReader().nextBatch(vec, -1, nullabilityHolder);
break;
case FIXED_WIDTH_BINARY:
- vectorizedColumnIterator.fixedWidthTypeBinaryBatchReader().nextBatch(vec, typeWidth, nullabilityHolder);
Review comment:
the difference is in the way stuff is being read: [FixedSizeBinary](https://github.com/apache/iceberg/blob/57477c3f1b7b28c938eebad73b9c9ab3efb924af/arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedParquetDefinitionLevelReader.java#L382-L404) vs [FixedWidthBinary](https://github.com/apache/iceberg/blob/57477c3f1b7b28c938eebad73b9c9ab3efb924af/arrow/src/main/java/org/apache/iceberg/arrow/vectorized/parquet/VectorizedParquetDefinitionLevelReader.java#L333-L356). For the `FIXED` type we should essentially be creating/using a `FixedSizeBinaryVector` from Arrow
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org