-
Notifications
You must be signed in to change notification settings - Fork 703
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
[CARBONDATA-2430][SDK] Reshuffling of Columns given by user in SDK. #2261
Conversation
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5598/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4437/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4691/ |
Retest this please |
throw new IllegalArgumentException("column name already exists"); | ||
} | ||
} | ||
// for (ColumnSchema column : otherColumns) { |
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.
Duplicate column handling is required for non sort column, please handle it.
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.
done
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5602/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4441/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4695/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4448/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5609/ |
It is |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4702/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4703/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5623/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4463/ |
SDV Build Fail , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4716/ |
Retest this please |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5630/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4470/ |
Retest this please |
Retest this please |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4477/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4480/ |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5640/ |
tableSchemaBuilder.addColumn(new StructField(field.getFieldName(), complexType), false); | ||
} | ||
} else { | ||
|
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.
remove empty lines
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.
Done
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4719/ |
// unsupported types for ("array", "struct", "double", "float", "decimal") | ||
if (field.getDataType() == DataTypes.DOUBLE || field.getDataType() == DataTypes.FLOAT | ||
|| DataTypes.isDecimal(field.getDataType()) || DataTypes | ||
.isArrayType(field.getDataType()) || DataTypes.isStructType(field.getDataType())) { |
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.
use field.getDataType().isComplexType() to check for complex types
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.
Done
Retest this please |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5648/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4488/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4724/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5655/ |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5657/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4497/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4732/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4734/ |
…onary a) Reshuffling of fields. Sorting of columns based on SORT -> DIMENSION -> COMPLEX -> MEASURE. b) Enable Complex Type NoDictionary Creation from Create Table DDL. c) ARRAY Support in AVRO. d) Minor Fixes related to AVRO SDK support.
Retest this please |
@sounakr Building schema should be common across spark-integration and sdk, there should not be two paths. I feel it is better to refactor to use common code. |
Build Failed with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5687/ |
Build Failed with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4527/ |
Retest this please. |
@ravipesala Refactoring of Building schema will be done as part of a separate PR as the changes are more and can impact the CarbonTable creation. Jira CARBONDATA-2449 is created for tracking the above refactoring task. |
Build Success with Spark 2.1.0, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder1/5692/ |
Build Success with Spark 2.2.1, Please check CI http://88.99.58.216:8080/job/ApacheCarbonPRBuilder/4532/ |
LGTM |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4762/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4764/ |
SDV Build Success , Please check CI http://144.76.159.231:8080/job/ApacheSDVTests/4770/ |
Reshuffling of Columns given by the user in SDK. Order should be Sort COlumns -> Dimension -> Complex --> Measure This closes apache#2261
Reshuffling of Columns given by the user in SDK. Order should be Sort COlumns -> Dimension -> Complex --> Measure
Any interfaces changed?
Any backward compatibility impacted?
Document update required?
Testing done
Please provide details on
- Whether new unit test cases have been added or why no new tests are required?
- How it is tested? Please attach test report.
- Is it a performance related change? Please attach the performance test report.
- Any additional information to help reviewers in testing this change.
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.