Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cld
workloads
tpcds
Commits
34a240f6
Commit
34a240f6
authored
Apr 11, 2017
by
Jonathan Mace
Browse files
Reduce number of parallel creators
parent
91fc07a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/com/databricks/spark/sql/perf/tpcds/Tables.scala
View file @
34a240f6
...
...
@@ -32,7 +32,7 @@ class Tables(sqlContext: SQLContext, scaleFactor: Int) extends Serializable {
case
class
Table
(
name
:
String
,
partitionColumns
:
Seq
[
String
],
fields
:
StructField*
)
{
val
schema
=
StructType
(
fields
)
val
partitions
=
if
(
partitionColumns
.
isEmpty
)
1
else
10
0
val
partitions
=
if
(
partitionColumns
.
isEmpty
)
1
else
2
0
def
nonPartitioned
:
Table
=
{
Table
(
name
,
Nil
,
fields
:
_
*
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment