Skip to content

Commit bbdd90a

Browse files
committed
Rename getters
1 parent ebc3dd1 commit bbdd90a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sql/catalyst/src/main/java/org/apache/spark/sql/connector/expressions/GetArrayItem.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ public GetArrayItem(Expression childArray, Expression ordinal, boolean failOnErr
4646
this.failOnError = failOnError;
4747
}
4848

49-
public Expression getChildArray() { return this.childArray; }
50-
public Expression getOrdinal() { return this.ordinal; }
51-
public boolean getFailOnError() { return this.failOnError; }
49+
public Expression childArray() { return this.childArray; }
50+
public Expression ordinal() { return this.ordinal; }
51+
public boolean failOnError() { return this.failOnError; }
5252

5353
@Override
54-
public Expression[] children() { return new Expression[]{ getChildArray() }; }
54+
public Expression[] children() { return new Expression[]{ childArray() }; }
5555
}

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/connector/ToStringSQLBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ class ToStringSQLBuilder extends V2ExpressionSQLBuilder with Serializable {
3838
}
3939

4040
override protected def visitGetArrayItem(getArrayItem: GetArrayItem): String = {
41-
s"${getArrayItem.getChildArray.toString}[${getArrayItem.getOrdinal.toString}]"
41+
s"${getArrayItem.childArray.toString}[${getArrayItem.ordinal.toString}]"
4242
}
4343
}

0 commit comments

Comments
 (0)