[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 https://github.com/apache/spark/pull/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 <max.gekk@gmail.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
This commit is contained in:
parent
6fd148fea8
commit
030b3139da
|
@ -41,7 +41,7 @@ case class ShowPartitionsExec(
|
|||
// listPartitionByNames() should return all partitions if the partition spec
|
||||
// does not specify any partition names.
|
||||
.getOrElse((Seq.empty[String], InternalRow.empty))
|
||||
val partitionIdentifiers = table.listPartitionByNames(names.toArray, ident)
|
||||
val partitionIdentifiers = table.listPartitionIdentifiers(names.toArray, ident)
|
||||
// Converting partition identifiers as `InternalRow` of partition values,
|
||||
// for instance InternalRow(value0, value1, ..., valueN), to `InternalRow`s
|
||||
// with a string in the format: "col0=value0/col1=value1/.../colN=valueN".
|
||||
|
|
Loading…
Reference in a new issue