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

Map ByteType to SMALLINT when using JDBC with PostgreSQL

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Input/Output
    • Labels:
      None

      Description

      PostgreSQL doesn't have TINYINT, which would map directly, but {{SMALLINT}}s are sufficient for uni-directional translation (i.e. when writing).

      This is equivalent to a user selecting 'byteColumn.cast(ShortType).

        Attachments

          Activity

            People

            • Assignee:
              mojodna Seth Fitzsimmons
              Reporter:
              mojodna Seth Fitzsimmons
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: