04-21-2016 06:53 AM
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?
01-17-2017 11:20 AM
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.
01-17-2017 11:32 AM
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.