This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new f1f2ec3 [SPARK-36735][SQL][FOLLOWUP] Fix indentation of
DynamicPartitionPruningSuite
f1f2ec3 is described below
commit f1f2ec3704dcccb527e82e7cd8309f5ab28450a3
Author: Liang-Chi Hsieh <[email protected]>
AuthorDate: Thu Sep 16 08:30:00 2021 -0700
[SPARK-36735][SQL][FOLLOWUP] Fix indentation of DynamicPartitionPruningSuite
### What changes were proposed in this pull request?
As a follow up of #33975, this fixes a few indentation in
DynamicPartitionPruningSuite.
### Why are the changes needed?
Fix wrong indentation.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Existing tests.
Closes #34016 from viirya/fix-style.
Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../org/apache/spark/sql/DynamicPartitionPruningSuite.scala | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git
a/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala
b/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala
index 9610f10..12b121f 100644
---
a/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala
+++
b/sql/core/src/test/scala/org/apache/spark/sql/DynamicPartitionPruningSuite.scala
@@ -467,13 +467,13 @@ abstract class DynamicPartitionPruningSuiteBase
Given("no stats and selective predicate with the size of dim too large")
withSQLConf(SQLConf.DYNAMIC_PARTITION_PRUNING_ENABLED.key -> "true",
- SQLConf.DYNAMIC_PARTITION_PRUNING_USE_STATS.key -> "true") {
+ SQLConf.DYNAMIC_PARTITION_PRUNING_USE_STATS.key -> "true") {
withTable("fact_aux") {
sql(
"""
|SELECT f.date_id, f.product_id, f.units_sold, f.store_id
|FROM fact_sk f WHERE store_id < 5
- """.stripMargin)
+ """.stripMargin)
.write
.partitionBy("store_id")
.saveAsTable("fact_aux")
@@ -483,7 +483,7 @@ abstract class DynamicPartitionPruningSuiteBase
|SELECT f.date_id, f.product_id, f.units_sold, f.store_id
|FROM fact_aux f JOIN dim_store s
|ON f.store_id = s.store_id WHERE s.country = 'US'
- """.stripMargin)
+ """.stripMargin)
checkPartitionPruningPredicate(df, false, false)
@@ -498,14 +498,14 @@ abstract class DynamicPartitionPruningSuiteBase
Given("no stats and selective predicate with the size of dim too large
but cached")
withSQLConf(SQLConf.DYNAMIC_PARTITION_PRUNING_ENABLED.key -> "true",
- SQLConf.DYNAMIC_PARTITION_PRUNING_USE_STATS.key -> "true") {
+ SQLConf.DYNAMIC_PARTITION_PRUNING_USE_STATS.key -> "true") {
withTable("fact_aux") {
withTempView("cached_dim_store") {
sql(
"""
|SELECT f.date_id, f.product_id, f.units_sold, f.store_id
|FROM fact_sk f WHERE store_id < 5
- """.stripMargin)
+ """.stripMargin)
.write
.partitionBy("store_id")
.saveAsTable("fact_aux")
@@ -518,7 +518,7 @@ abstract class DynamicPartitionPruningSuiteBase
|SELECT f.date_id, f.product_id, f.units_sold, f.store_id
|FROM fact_aux f JOIN cached_dim_store s
|ON f.store_id = s.store_id WHERE s.country = 'US'
- """.stripMargin)
+ """.stripMargin)
checkPartitionPruningPredicate(df, true, false)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]