pan3793 commented on code in PR #52988:
URL: https://github.com/apache/spark/pull/52988#discussion_r2512841895
##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectResultSet.scala:
##########
@@ -258,12 +230,8 @@ class SparkConnectResultSet(
throw new SQLFeatureNotSupportedException
override def getBigDecimal(columnIndex: Int): java.math.BigDecimal = {
- if (currentRow.isNullAt(columnIndex - 1)) {
- _wasNull = true
- return null
- }
- _wasNull = false
- currentRow.getDecimal(columnIndex - 1)
+ getColumnValue(columnIndex - 1, null: java.math.BigDecimal) { idx =>
+ currentRow.getDecimal(idx) }
Review Comment:
```suggestion
currentRow.getDecimal(idx)
}
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]