Skip to content

Commit

Permalink
Colocated part and partsupp tables in tpch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hemant Bhanawat committed Jul 19, 2016
1 parent 7d32d5a commit 0daea47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -373,7 +373,7 @@ object TPCHColumnPartitionedTable {
val partSuppDF = sqlContext.createDataFrame(partSuppReadings)

if (isSnappy) {
val p1 = Map(("PARTITION_BY"-> "ps_partkey"),("BUCKETS"->buckets))
val p1 = Map(("PARTITION_BY"-> "ps_partkey"),("BUCKETS"->buckets),("COLOCATE_WITH"->"PART"))

val snappyContext = sqlContext.asInstanceOf[SnappyContext]
snappyContext.dropTable("PARTSUPP", ifExists = true)
Expand Down
Expand Up @@ -1148,8 +1148,8 @@ object TPCH_Snappy {
" from" +
" PART," +
" LINEITEM_PART," +
" SUPPLIER," +
" PARTSUPP," +
" SUPPLIER," +
" ORDERS," +
" NATION" +
" where" +
Expand Down

0 comments on commit 0daea47

Please sign in to comment.