SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

How do I create ORC tables with compression in SAS DI Studio without using user written passthrough?

Reply
Learner
Posts: 1

How do I create ORC tables with compression in SAS DI Studio without using user written passthrough?

I’ve been looking at creating ORC tables in Hadoop(2.2) and have successfully used the DBCREATE_TABLE_OPTS on the table properties within SAS DI Studio(4.9) for registered or permanent tables (options do not stick on work tables registered to Hadoop libraries).

 

What I’ve not managed to do is find is where I can add details of the type of compression(E.G. Snappy) I’d like to use.

 

Has anyone had any success in doing this other than pass-through user written code?

SAS Employee
Posts: 203

Re: How do I create ORC tables with compression in SAS DI Studio without using user written passthro

Hi @Centrica

 

You may be able to add this to the DBCREATE_TABLE_OPTS= option. Here is the SQL I think will work.

 

STORED AS orc tblproperties ("orc.compress"="SNAPPY")

 

I am not sure how to do this with DI Studio, but it sounds like you have that sorted out. I will try this later today.

 

Best wishes,

Jeff

SAS Employee
Posts: 36

Re: How do I create ORC tables with compression in SAS DI Studio without using user written passthro

One additional comment, if you use the SAS in-database hadoop code accelerator to read/write the data, Avro, Parquet, and Sequence files are automatically compressed using Snappy, assuming it is enabled on your hadoop system.  The DBCREATE_TABLE_OPTS setting is also available on the table properties in DI Studio.  

 

Nancy

 

Ask a Question
Discussion stats
  • 2 replies
  • 974 views
  • 0 likes
  • 3 in conversation