-
Notifications
You must be signed in to change notification settings - Fork 236
feat: Support Array Literal #2057
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
Changes from all commits
8e4f051
e2da225
89b9c1d
c29d5e8
4a36c8b
5e9f5a1
6c3e3ec
3b9e068
2ac7d33
3089a30
476b2fd
c95d05e
0e5fcb0
1f9a979
05373d6
3ef8cce
8c1c888
309d1af
0dff9be
eeac850
583e54d
c1c80f5
b898671
8206c07
e89e225
38822db
2a45cb9
4dfc087
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one | ||
// or more contributor license agreements. See the NOTICE file | ||
// distributed with this work for additional information | ||
// regarding copyright ownership. The ASF licenses this file | ||
// to you under the Apache License, Version 2.0 (the | ||
// "License"); you may not use this file except in compliance | ||
// with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, | ||
// software distributed under the License is distributed on an | ||
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
// KIND, either express or implied. See the License for the | ||
// specific language governing permissions and limitations | ||
// under the License. | ||
|
||
|
||
|
||
syntax = "proto3"; | ||
|
||
package spark.spark_expression; | ||
|
||
option java_package = "org.apache.comet.serde"; | ||
|
||
message ListLiteral { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use an enum here. maybe? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @parthchandra for the review, please help me to understand enum proposal? enum can define types variants
and to send data across boundaries as bytes? If it is, can it be considered as follow up PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct. If the ListLiteral is an enum type then you will need only one field instead of multiple fields only one of which can be populated.
Just realized that I'm not sure if it will work with nested lists though. |
||
// Only one of these fields should be populated based on the array type | ||
repeated bool boolean_values = 1; | ||
repeated int32 byte_values = 2; | ||
repeated int32 short_values = 3; | ||
repeated int32 int_values = 4; | ||
repeated int64 long_values = 5; | ||
repeated float float_values = 6; | ||
repeated double double_values = 7; | ||
repeated string string_values = 8; | ||
repeated bytes bytes_values = 9; | ||
repeated bytes decimal_values = 10; | ||
repeated ListLiteral list_values = 11; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this for future support of lists within lists? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. correct |
||
|
||
repeated bool null_mask = 12; | ||
} |
Uh oh!
There was an error while loading. Please reload this page.