Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29836 PostgreSQL dialect: cast
  3. SPARK-29847

PostgreSQL dialect: cast to varchar

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.1.0
    • None
    • SQL
    • None

    Description

      In Spark

      jdbc:hive2://10.18.19.208:23040/default> select cast('10.345bbbbbb' as varchar(10));
      -------------------------------

      CAST(10.345bbbbbb AS STRING)

      -------------------------------

      10.345*bbbbbb*

      -------------------------------

       

      In PostgreSQL

      select cast('10.345bbbbbb' as varchar(10));

         varchar   varchar1 10.345bbbb

      Attachments

        Activity

          People

            Unassigned Unassigned
            abhishek.akg ABHISHEK KUMAR GUPTA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: