<?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>topic Re: SAS numeric columns are read as double data type in HIVE in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510341#M1931</link>
    <description>&lt;P&gt;SAS stores numbers in 8-byte real (floating) format, so that will be the default when writing to an external database.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Nov 2018 07:40:54 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-11-05T07:40:54Z</dc:date>
    <item>
      <title>SAS numeric columns are read as double data type in HIVE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510337#M1929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS access to Hadoop and connecting to Hadoop engine using libname statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever I'm creating table in HIVE, it's automatically reading all numeric values as double in HIVE.&lt;/P&gt;&lt;P&gt;This is causing decimal values in output tables.&lt;/P&gt;&lt;P&gt;For example, account_id has a 16 digit value (X) in source data, it's displaying as a decimal value X.0 in HIVE because of double data type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could someone help me how to read the columns as BIGINT in HIVE using create table query in SAS.&lt;/P&gt;&lt;P&gt;I tried defining column data type as BIGINT in create table statement but that gives me a syntax error, when I used INT instead, it resulted in double.&lt;/P&gt;&lt;P&gt;Both create table like and create table are reading as double in HIVE.&lt;/P&gt;&lt;P&gt;Please assist me in this regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yamini&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510337#M1929</guid>
      <dc:creator>nagayamini</dc:creator>
      <dc:date>2018-11-05T07:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS numeric columns are read as double data type in HIVE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510341#M1931</link>
      <description>&lt;P&gt;SAS stores numbers in 8-byte real (floating) format, so that will be the default when writing to an external database.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 07:40:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510341#M1931</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-05T07:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS numeric columns are read as double data type in HIVE</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510347#M1932</link>
      <description>&lt;P&gt;Dear Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the users are not OK to see the decimal values in output table, please let me know if there's any other way to overwrite this default floating format from SAS end.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your assistance on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Yamini&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2018 08:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-numeric-columns-are-read-as-double-data-type-in-HIVE/m-p/510347#M1932</guid>
      <dc:creator>nagayamini</dc:creator>
      <dc:date>2018-11-05T08:44:47Z</dc:date>
    </item>
  </channel>
</rss>

