Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class BucketedReadSuite extends QueryTest with SQLTestUtils {
.bucketBy(8, "j", "k")
.saveAsTable("bucketed_table")

for (i <- 0 until 5) {
Copy link
Member

@HyukjinKwon HyukjinKwon Oct 5, 2018

Choose a reason for hiding this comment

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

Oh haha I was struggling to find why it was 5 and 13 and looks it's in df :-)

for (i <- 0 until 3) {
val table = spark.table("bucketed_table").filter($"i" === i)
val query = table.queryExecution
val output = query.analyzed.output
Expand Down Expand Up @@ -145,7 +145,7 @@ abstract class BucketedReadSuite extends QueryTest with SQLTestUtils {
.bucketBy(numBuckets, "j")
.saveAsTable("bucketed_table")

for (j <- 0 until 13) {
for (j <- 0 until 2) {
// Case 1: EqualTo
checkPrunedAnswers(
bucketSpec,
Expand Down Expand Up @@ -188,7 +188,7 @@ abstract class BucketedReadSuite extends QueryTest with SQLTestUtils {
.bucketBy(numBuckets, "j")
.saveAsTable("bucketed_table")

for (j <- 0 until 13) {
for (j <- 0 until 2) {
checkPrunedAnswers(
bucketSpec,
bucketValues = j :: Nil,
Expand Down Expand Up @@ -236,7 +236,7 @@ abstract class BucketedReadSuite extends QueryTest with SQLTestUtils {
.bucketBy(numBuckets, "j")
.saveAsTable("bucketed_table")

for (j <- 0 until 13) {
for (j <- 0 until 2) {
checkPrunedAnswers(
bucketSpec,
bucketValues = j :: Nil,
Expand Down