You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Shiv Prashant Sood (Jira)" <ji...@apache.org> on 2019/10/30 01:44:00 UTC

[jira] [Updated] (SPARK-29644) ShortType is wrongly set as Int in JDBCUtils.scala

     [ https://issues.apache.org/jira/browse/SPARK-29644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shiv Prashant Sood updated SPARK-29644:
---------------------------------------
    Description: 
@maropu pointed out this issue during  [PR 25344|https://github.com/apache/spark/pull/25344]  review discussion.
 In [JDBCUtils.scala|https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala] line number 547

case ShortType =>
 (stmt: PreparedStatement, row: Row, pos: Int) =>
 stmt.setInt(pos + 1, row.getShort(pos))


I dont see any reproducible issue, but this is clearly a problem that must be fixed.

  was:
@maropu pointed out this issue in [PR 25344|https://github.com/apache/spark/pull/25344] 
 In [JDBCUtils.scala|https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala] line number 547

case ShortType =>
 (stmt: PreparedStatement, row: Row, pos: Int) =>
 stmt.setInt(pos + 1, row.getShort(pos))

 

 


> ShortType is wrongly set as Int in JDBCUtils.scala
> --------------------------------------------------
>
>                 Key: SPARK-29644
>                 URL: https://issues.apache.org/jira/browse/SPARK-29644
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.4.4, 3.0.0
>            Reporter: Shiv Prashant Sood
>            Priority: Minor
>
> @maropu pointed out this issue during  [PR 25344|https://github.com/apache/spark/pull/25344]  review discussion.
>  In [JDBCUtils.scala|https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala] line number 547
> case ShortType =>
>  (stmt: PreparedStatement, row: Row, pos: Int) =>
>  stmt.setInt(pos + 1, row.getShort(pos))
> I dont see any reproducible issue, but this is clearly a problem that must be fixed.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org