<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question TRIM on Hive Decimal Datatype in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96390#M9870</link>
    <description>&lt;P&gt;I'm working on a scenario where a good number of queries uses TRIM(DECIMAL VALUE) in Hive 0.11 (Pivotal 1.0). After migration to HDP 2.2  (Hive 0.14), the queries started failing with error "Trim Takes only STRING/CHAR/VARCHAR types. Found Decimal".    If I tried to run the same query as TRIM(STRING(DECIMAL VALUE)), it runs fine in Hive 0.14. Due to the volume of queries that should under go this casting change, is it possible to set this Implicit casting at a global level (say SET). Are there any workaround to trim decimal values in Hive 0.14 (which was supported in 0.11). &lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 07:08:43 GMT</pubDate>
    <dc:creator>grajagopal</dc:creator>
    <dc:date>2015-11-03T07:08:43Z</dc:date>
    <item>
      <title>TRIM on Hive Decimal Datatype</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96390#M9870</link>
      <description>&lt;P&gt;I'm working on a scenario where a good number of queries uses TRIM(DECIMAL VALUE) in Hive 0.11 (Pivotal 1.0). After migration to HDP 2.2  (Hive 0.14), the queries started failing with error "Trim Takes only STRING/CHAR/VARCHAR types. Found Decimal".    If I tried to run the same query as TRIM(STRING(DECIMAL VALUE)), it runs fine in Hive 0.14. Due to the volume of queries that should under go this casting change, is it possible to set this Implicit casting at a global level (say SET). Are there any workaround to trim decimal values in Hive 0.14 (which was supported in 0.11). &lt;/P&gt;&lt;P&gt;Thank you! &lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 07:08:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96390#M9870</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2015-11-03T07:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM on Hive Decimal Datatype</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96391#M9871</link>
      <description>&lt;P&gt;No there is no global way to set casting in Hive. What do you want to achieve by trimming decimal, do you want to use trim to remove trailing zeros? Looks like even Hive 0.11 trim was for removing the leading and trailing space characters. Its just that now they do explicit type check for string/var/varchar before trimming spaces which seem like the right behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:31:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96391#M9871</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-11-03T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: TRIM on Hive Decimal Datatype</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96392#M9872</link>
      <description>&lt;P&gt;Thanks Deepesh.  I'm working with a customer where they have coded the existing Informatica Workflows (BDE) with TRIM on Decimal value in prod. When we are trying to migrate HDP and run them on Hive 0.14, it started erroring out in lower environment. We stated Hive is working as intended to, but wanted to check if there are any workarounds.&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 11:07:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TRIM-on-Hive-Decimal-Datatype/m-p/96392#M9872</guid>
      <dc:creator>grajagopal</dc:creator>
      <dc:date>2015-11-03T11:07:15Z</dc:date>
    </item>
  </channel>
</rss>

