Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/20981#discussion_r180356241
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala ---
@@ -119,4 +119,26 @@ object InternalRow {
case v: MapData => v.copy()
case _ => value
}
+
+ /**
+ * Returns an accessor for an InternalRow with given data type and
ordinal.
+ */
+ def getAccessor(dataType: DataType, ordinal: Int): (InternalRow) => Any
= dataType match {
--- End diff --
Maybe we can make the accessor accept `SpecializedGetters`, so this can be
reused in #20984 too...
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]