You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/02/24 10:18:00 UTC
[jira] [Updated] (SPARK-26969) [Spark] Using ODBC not able to see
the data in table when datatype is decimal
[ https://issues.apache.org/jira/browse/SPARK-26969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-26969:
---------------------------------
Description:
{code}
# Using odbc rpm file install odbc
# connect to odbc using isql -v spark2xsingle
# SQL> create table t1_t(id decimal(15,2));
# SQL> insert into t1_t values(15);
#
SQL> select * from t1_t;
+-------------------------+
| id |
+-------------------------+
+-------------------------+ Actual output is empty
{code}
Note: When creating table of int data type select is giving result as below
{code}
SQL> create table test_t1(id int);
SQL> insert into test_t1 values(10);
SQL> select * from test_t1;
+------------+
| id |
+------------+
| 10 |
+------------+
{code}
Needs to handle for decimal case.
was:
# Using odbc rpm file install odbc
# connect to odbc using isql -v spark2xsingle
# SQL> create table t1_t(id decimal(15,2));
# SQL> insert into t1_t values(15);
#
SQL> select * from t1_t;
+-------------------------+
| id |
+-------------------------+
+-------------------------+ Actual output is empty
Note: When creating table of int data type select is giving result as below
SQL> create table test_t1(id int);
SQL> insert into test_t1 values(10);
SQL> select * from test_t1;
+------------+
| id |
+------------+
| 10 |
+------------+
Needs to handle for decimal case.
> [Spark] Using ODBC not able to see the data in table when datatype is decimal
> -----------------------------------------------------------------------------
>
> Key: SPARK-26969
> URL: https://issues.apache.org/jira/browse/SPARK-26969
> Project: Spark
> Issue Type: Bug
> Components: Spark Shell
> Affects Versions: 2.4.0
> Reporter: ABHISHEK KUMAR GUPTA
> Priority: Major
>
> {code}
> # Using odbc rpm file install odbc
> # connect to odbc using isql -v spark2xsingle
> # SQL> create table t1_t(id decimal(15,2));
> # SQL> insert into t1_t values(15);
> #
> SQL> select * from t1_t;
> +-------------------------+
> | id |
> +-------------------------+
> +-------------------------+ Actual output is empty
> {code}
> Note: When creating table of int data type select is giving result as below
> {code}
> SQL> create table test_t1(id int);
> SQL> insert into test_t1 values(10);
> SQL> select * from test_t1;
> +------------+
> | id |
> +------------+
> | 10 |
> +------------+
> {code}
> Needs to handle for decimal case.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org