Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the TPCDS schema based on the Spark codebase #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maropu
Copy link

@maropu maropu commented Apr 26, 2021

This PR intends to update the TPCDS schema based on the Spark codebase.

I've manually checked that tables can be generated in spark-3.0/3.1/master.


val dataGenerator = new DSDGEN(dsdgenDir)

/**
* Datatype mapping for TPC-DS and Spark SQL, fully matching schemas defined in `tpcds.sql` of the
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was copied from TPCDSBase in Spark. cc: @yaooqinn

'cs_net_paid_inc_ship_tax .decimal(7,2),
'cs_net_profit .decimal(7,2)),
"""
|`cs_sold_date_sk` INT,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since ColumnName does not have a helper method for char/varchar types, I've replaced schema fields with a string schema.

@maropu
Copy link
Author

maropu commented Apr 26, 2021

cc: @HyukjinKwon @npoggi

@npoggi
Copy link
Contributor

npoggi commented Apr 26, 2021

Thanks for the update, I'll take a closer look later during the week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants