Skip to content

Commit 3b1e42f

Browse files
author
Davies Liu
committed
remove suffix
1 parent 9f7d763 commit 3b1e42f

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/BoundAttribute.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.apache.spark.sql.types._
3131
case class BoundReference(ordinal: Int, dataType: DataType, nullable: Boolean)
3232
extends LeafExpression with NamedExpression {
3333

34-
override def toString: String = s"input[$ordinal, $dataType]${if (nullable) "?" else ""}"
34+
override def toString: String = s"input[$ordinal, $dataType]"
3535

3636
// Use special getter for primitive types (for UnsafeRow)
3737
override def eval(input: InternalRow): Any = {

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ trait NamedExpression extends Expression {
8181

8282
protected def typeSuffix =
8383
if (resolved) {
84-
val suffix = if (nullable) "?" else ""
8584
dataType match {
86-
case LongType => "L" + suffix
87-
case _ => suffix
85+
case LongType => "L"
86+
case _ => ""
8887
}
8988
} else {
9089
""

0 commit comments

Comments
 (0)