BookmarkSubscribeRSS Feed
nagayamini
Calcite | Level 5

Hi,

 

I'm using SAS access to Hadoop and connecting to Hadoop engine using libname statement.

 

Whenever I'm creating table in HIVE, it's automatically reading all numeric values as double in HIVE.

This is causing decimal values in output tables.

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.

 

Could someone help me how to read the columns as BIGINT in HIVE using create table query in SAS.

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.

Both create table like and create table are reading as double in HIVE.

Please assist me in this regards.

 

Best Regards

Yamini

2 REPLIES 2
nagayamini
Calcite | Level 5

Dear Kurt,

 

Thanks for your response. 

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.

 

Appreciate your assistance on this.

 

Best Regards

Yamini

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1270 views
  • 0 likes
  • 2 in conversation