-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable iceberg compat tests, more tests for complex types #1550
base: main
Are you sure you want to change the base?
Conversation
@@ -63,4 +61,67 @@ class CometNativeReaderSuite extends CometTestBase with AdaptiveSparkPlanHelper | |||
|""".stripMargin, | |||
"select arr from tbl") | |||
} | |||
|
|||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Followup ticket to fix schema issues for native reader - read STRUCT of ARRAY fields
#1551
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1550 +/- ##
============================================
+ Coverage 56.12% 58.53% +2.40%
- Complexity 976 977 +1
============================================
Files 119 122 +3
Lines 11743 12237 +494
Branches 2251 2279 +28
============================================
+ Hits 6591 7163 +572
+ Misses 4012 3944 -68
+ Partials 1140 1130 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Not sure why test failed, it is okay on local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great tests @comphead
Do you think we need to add some cases with one more level of nesting -
array
+- struct
+- array
and
struct
+- array
+- struct
or would that be overkill?
Thanks @parthchandra I'll try to add them once I fx other tests currently failing UPD: it can be done once #1551 is fixed |
fyi, currently some tests in Spark SQL (e.g. "add a nested column at the end of the leaf struct column") fail because of structs like this with.
|
appreciate if you can mention those tests in #1551 so we can double check if they can pass |
supportedDataType( | ||
a.dataType, | ||
allowComplex = | ||
usingDataFusionParquetExec(conf) || op.isInstanceOf[CometSparkToColumnarExec])) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mbutrovich I think this check require attention.
It needs to work for CometSparkToColumnarExec
as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one commment
supportedDataType( | ||
a.dataType, | ||
allowComplex = | ||
usingDataFusionParquetExec(conf) || CometConf.COMET_CONVERT_FROM_PARQUET_ENABLED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why COMET_CONVERT_FROM_*
is allowed only here but not other places?
Which issue does this PR close?
Part of #1454 .
Rationale for this change
Enable Iceberg compat type tests, add more tests for complex types
What changes are included in this PR?
How are these changes tested?