You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Jason Dere <jd...@hortonworks.com> on 2017/10/12 22:05:58 UTC

Review Request 62954: HIVE-17782 Inconsistent cast behavior from string to numeric types with regards to leading/trailing spaces

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/62954/
-----------------------------------------------------------

Review request for hive and Sergey Shelukhin.


Bugs: HIVE-17782
    https://issues.apache.org/jira/browse/HIVE-17782


Repository: hive-git


Description
-------

Add option to trim spaces from lazy byte/short/int/long


Diffs
-----

  common/src/java/org/apache/hive/common/util/HiveStringUtils.java dc3ee98 
  ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToByte.java 12f530b 
  ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToInteger.java 1de7604 
  ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToLong.java 11f6a6c 
  ql/src/java/org/apache/hadoop/hive/ql/udf/UDFToShort.java 5372549 
  ql/src/test/queries/clientpositive/cast2.q PRE-CREATION 
  ql/src/test/results/clientpositive/cast2.q.out PRE-CREATION 
  serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyByte.java 1f9cead 
  serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyInteger.java 22742aa 
  serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyLong.java c0d52b9 
  serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyShort.java b8b9488 
  serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazyPrimitive.java 3d7f11e 


Diff: https://reviews.apache.org/r/62954/diff/1/


Testing
-------

Junit, qfile tests


Thanks,

Jason Dere