Github user jiangxb1987 commented on a diff in the pull request:
https://github.com/apache/spark/pull/19444#discussion_r143390226
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
---
@@ -405,6 +405,11 @@ object CatalogTypes {
* Specifications of a table partition. Mapping column name to column
value.
*/
type TablePartitionSpec = Map[String, String]
+
+ /**
+ * Initialize an empty spec.
+ */
+ lazy val emptyTablePartitionSpec: TablePartitionSpec = Map.empty[String,
String]
--- End diff --
We wanted to refer the val `emptyTablePartitionSpec` as
`TablePartitionSpec`, not `Map[String, String]`, though they are equal.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]