Skip to content

Latest commit

 

History

History

tpcds_etabs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Make external tables to load TPC-DS data

Run the tpcds_makex.sql in your TPC-DS schema at it will spool a new script called tpcds_etabs.sql. This spooled script will create a bunch of external tables enabling you to load the TPC-DS files generated by dsdgen.

I have also included tpcds_makex_adw.sql. It will create external tables in ADW to load from the object store.

The example tpcds_etabs.sql script has been tested on TPC-DS v1.4. For other versions, just run tpcds_makex.sql to create a new tpcds_etabs.sql file. The whole workflow has been tested on v1.4 and v2.5.

If you leave the script unedited, you just create a symbolic link "/tmp/tpcdsload" pointing to the directory containing all of your dsdgen files.

The external tables are named "X_tpcds_table_name" - so take care if you have any tables called "X_something" as these might be dropped when you run tpcds_etabs.sql.

I've included an example of how to load the data once the external tables have been created. See "load_example.sql".