BookmarkSubscribeRSS Feed
Ashib91
Calcite | Level 5

Hi All,

 

Has anyone tried reading / importing hive tables in SAS ? The idea is to keep the schema of the tables intact while using them in SAS.

Can anyone help me on this ?

 

Regards,

Ashib

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20

Do you have sas/access to Hadoop?

Ashib91
Calcite | Level 5

Hi Chris,

 

Thanks for your reply, is it possible to achieve this without SAS/Access ? If we try to read the hive tables by making a connection between SAS and hadoop using proc SQL, will the schema of tables remain intact ?

 

Meanwhile I will check about the SAS / Access option.

 

Regards,

Ashib

ChrisNZ
Tourmaline | Level 20

1. You could use ODBC.

 

2. I am unsure I understand your concern.

- You won't change anything in Hadoop by just by reading data

- SAS will see the structure that Hadoop presents.

 

Ashib91
Calcite | Level 5

I will try to make it more clear, suppose there is a hive table with datatypes such as bigint etc. and if I make a connection between SAS and hadoop and read this table, will I be able to read the table correctly ?

 

Regards,

Ashib

ChrisNZ
Tourmaline | Level 20
It will be a number to SAS and be read accurately if it is smaller than 2^53 (on a PC or Unix machine).

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1767 views
  • 0 likes
  • 2 in conversation