xubo245 commented on a change in pull request #3181: [CARBONDATA-3356] Fix the issue when carbonData DataSource read SDK files with varchar
URL:
https://github.com/apache/carbondata/pull/3181#discussion_r277236736
##########
File path: store/sdk/src/main/java/org/apache/carbondata/sdk/file/Field.java
##########
@@ -78,6 +78,8 @@ public Field(String name, String type) {
this.type = DataTypes.FLOAT;
} else if (type.equalsIgnoreCase("double")) {
this.type = DataTypes.DOUBLE;
+ } else if (type.equalsIgnoreCase("decimal")) {
+ this.type = DataTypes.createDefaultDecimalType();
Review comment:
Schema.parseJson(schema) doesn't support decimal. So I support default decimal in here, we can support if need set scale and precision.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services