We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9526f1 commit dde9123Copy full SHA for dde9123
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala
@@ -294,11 +294,12 @@ object JdbcUtils extends Logging {
294
rsmd.getClass.getName == "org.apache.hive.jdbc.HiveResultSetMetaData" => true
295
}
296
297
- val nullable =
+ val nullable = {
298
if (alwaysNullable)
299
alwaysNullable
300
else
301
rsmd.isNullable(i + 1) != ResultSetMetaData.columnNoNulls
302
+ }
303
val metadata = new MetadataBuilder()
304
.putString("name", columnName)
305
.putLong("scale", fieldScale)
0 commit comments