-
Notifications
You must be signed in to change notification settings - Fork 240
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
Add in support for explode on maps #3175
Conversation
Signed-off-by: Robert (Bobby) Evans <bobby@apache.org>
build |
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.
Minor nits, lgtm.
@@ -695,7 +695,10 @@ static boolean typeConversionAllowed(ColumnView cv, DataType colType) { | |||
|
|||
static boolean typeConversionAllowed(Table table, DataType[] colTypes, int startCol, int endCol) { | |||
final int numColumns = endCol - startCol; | |||
assert numColumns == colTypes.length: "The number of columns and the number of types don't match"; | |||
assert numColumns == colTypes.length: "The number of columns and the number of types don't " + | |||
"match. expected " + colTypes.length + " but found " + numColumns + ". (" + table + |
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.
"match. expected " + colTypes.length + " but found " + numColumns + ". (" + table + | |
"match. Expected " + colTypes.length + " but found " + numColumns + ". (" + table + |
// SOME INPUT COLUMNS | POS COLUMN? | STRUCT(KEY, VALUE) | MORE INPUT COLUMNS | ||
// scalastyle:on line.size.limit | ||
val structPos = genOffset + numPos | ||
withResource (ArrayBuffer.empty[ColumnVector] ) { newColumns => |
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.
Nit: some odd extra whitespace here.
withResource (ArrayBuffer.empty[ColumnVector] ) { newColumns => | |
withResource(ArrayBuffer.empty[ColumnVector]) { newColumns => |
build |
This fixes #3110