Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-26969

[Spark] Using ODBC not able to see the data in table when datatype is decimal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 3.0.0
    • Spark Shell
    • None

    Description

      #  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.

      Attachments

        Issue Links

          Activity

            People

              S71955 Sujith Chacko
              abhishek.akg ABHISHEK KUMAR GUPTA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: