Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-47361 Improve JDBC data sources
  3. SPARK-44866

Spark wrongly map the BOOLEAN Type to BIT(1) in Snowflake

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1
    • 4.0.0
    • SQL

    Description

      In Snowflake the Boolean type is represented by the Boolean data type (https://docs.snowflake.com/en/sql-reference/data-types-logical), but Spark rely on the default JdbcDialect to generate the mapping which maps Boolean to BIT(1)

      This should be probably handled by a dialect specific to Snowflake.

      Attachments

        Activity

          People

            hayssam Hayssam Saleh
            hayssam Hayssam Saleh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified