Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/7666#discussion_r35489827
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/InternalRow.scala ---
@@ -32,32 +32,36 @@ abstract class InternalRow extends Serializable {
def get(ordinal: Int): Any
- def getAs[T](ordinal: Int): T = get(ordinal).asInstanceOf[T]
+ def genericGet(ordinal: Int): Any = get(ordinal, null)
+
+ def get(ordinal: Int, dataType: DataType): Any = get(ordinal)
+
+ def getAs[T](ordinal: Int, dataType: DataType): T = get(ordinal,
dataType).asInstanceOf[T]
--- End diff --
where do we use the `dateType`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]