Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ trait ScalaReflection {
.getOrElse(BoundReference(ordinal, dataType, false))

/** Returns the current path or throws an error. */
def getPath = path.getOrElse(BoundReference(0, dataTypeFor(tpe), true))
def getPath = path.getOrElse(BoundReference(0, schemaFor(tpe).dataType, true))

tpe match {
case t if !dataTypeFor(t).isInstanceOf[ObjectType] =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class ExpressionEncoderSuite extends SparkFunSuite {
encodeDecodeTest(false)
encodeDecodeTest(1.toShort)
encodeDecodeTest(1.toByte)
encodeDecodeTest("hello")

encodeDecodeTest(PrimitiveData(1, 1, 1, 1, 1, 1, true))

Expand Down