You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "ayushtkn (via GitHub)" <gi...@apache.org> on 2023/06/21 16:08:48 UTC

[GitHub] [hive] ayushtkn commented on a diff in pull request #4417: HIVE-27321: Support Decimal(precision, scale) format

ayushtkn commented on code in PR #4417:
URL: https://github.com/apache/hive/pull/4417#discussion_r1237254641


##########
serde/src/java/org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils.java:
##########
@@ -489,7 +489,7 @@ private TypeInfo parseType() {
           } else if (params.length == 2) {
             // New metadata always have two parameters.
             precision = Integer.parseInt(params[0]);
-            scale = Integer.parseInt(params[1]);
+            scale = Integer.parseInt(params[1].trim());

Review Comment:
   @zhangbutao Wasn't the previous approach more safe? If some token expects to have a space before or after, can we land up in a mess?



-- 
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.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org