-
Notifications
You must be signed in to change notification settings - Fork 223
feat: support literal for ARRAY top level #1978
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
base: main
Are you sure you want to change the base?
Conversation
@@ -472,5 +475,4 @@ message DataType { | |||
} | |||
|
|||
DataTypeInfo type_info = 2; |
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.
I'm preferring to move all DataType
proto message into types.proto
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1978 +/- ##
============================================
+ Coverage 56.12% 58.75% +2.62%
- Complexity 976 1239 +263
============================================
Files 119 134 +15
Lines 11743 13105 +1362
Branches 2251 2415 +164
============================================
+ Hits 6591 7700 +1109
- Misses 4012 4176 +164
- Partials 1140 1229 +89 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Per the spark documentation these are the literals aupported by Spark - https://spark.apache.org/docs/latest/sql-ref-literals.html |
Thanks @parthchandra |
.build_list_scalar() | ||
} | ||
DataType::Boolean => { | ||
let vals = values.clone(); |
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.
I'll create a macro in followup PR to remove repeated code
@@ -21,6 +21,7 @@ | |||
|
|||
// Include generated modules from .proto files. | |||
#[allow(missing_docs)] | |||
#[allow(clippy::large_enum_variant)] |
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.
clippy complains on proto enums
if supportedDataType( | ||
dataType, | ||
allowComplex = value == null || Seq( | ||
CometConf.SCAN_NATIVE_ICEBERG_COMPAT, |
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.
should we also support AUTO?
Which issue does this PR close?
Closes #1977 .
Rationale for this change
What changes are included in this PR?
How are these changes tested?