ueshin commented on a change in pull request #26512: [WIP][SPARK-29493][SQL]
Arrow MapType support
URL: https://github.com/apache/spark/pull/26512#discussion_r356324156
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/test/SQLTestData.scala
##########
@@ -335,4 +343,30 @@ private[sql] object SQLTestData {
case class ComplexData(m: Map[String, Int], s: TestData, a: Seq[Int], b:
Boolean)
case class CourseSales(course: String, year: Int, earnings: Double)
case class TrainingSales(training: String, sales: CourseSales)
+ case class IntervalData(data: CalendarInterval)
+// case class TestUDT() extends UserDefinedType[IExampleBaseType] {
+//
+// override def sqlType: StructType = {
+// StructType(Seq(
+// StructField("intfield", IntegerType, nullable = false)))
+// }
+//
+// override def serialize(obj: IExampleBaseType): InternalRow = {
+// val row = new GenericInternalRow(1)
+// row.setInt(0, obj.field)
+// row
+// }
+//
+// override def deserialize(datum: Any): IExampleBaseType = {
+// datum match {
+// case row: InternalRow =>
+// require(row.numFields == 1,
+// "TestUDT requires row with length == 1")
+// val field = row.getInt(0)
+// new ExampleBaseClass(field)
+// }
+// }
+//
+// override def userClass: Class[IExampleBaseType] =
classOf[IExampleBaseType]
+// }
Review comment:
Could you revert the other changes in the file?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]