Skip to content

Commit 030b313

Browse files
MaxGekkcloud-fan
authored andcommitted
[SPARK-33569][SPARK-33452][SQL][FOLLOWUP] Fix a build error in ShowPartitionsExec
### What changes were proposed in this pull request? Use `listPartitionIdentifiers ` instead of `listPartitionByNames` in `ShowPartitionsExec`. The `listPartitionByNames` was renamed by #30514. ### Why are the changes needed? To fix build error. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By running tests for the `SHOW PARTITIONS` command: ``` $ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *ShowPartitionsSuite" ``` Closes #30553 from MaxGekk/fix-build-show-partitions-exec. Authored-by: Max Gekk <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
1 parent 6fd148f commit 030b313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/ShowPartitionsExec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ case class ShowPartitionsExec(
4141
// listPartitionByNames() should return all partitions if the partition spec
4242
// does not specify any partition names.
4343
.getOrElse((Seq.empty[String], InternalRow.empty))
44-
val partitionIdentifiers = table.listPartitionByNames(names.toArray, ident)
44+
val partitionIdentifiers = table.listPartitionIdentifiers(names.toArray, ident)
4545
// Converting partition identifiers as `InternalRow` of partition values,
4646
// for instance InternalRow(value0, value1, ..., valueN), to `InternalRow`s
4747
// with a string in the format: "col0=value0/col1=value1/.../colN=valueN".

0 commit comments

Comments
 (0)