XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Won't Do
    • 3.0.0
    • None
    • SQL
    • None

    Description

      Make SparkSQL's cast to char behavior be consistent with PostgreSQL when

      spark.sql.dialect is configured as PostgreSQL.

      spark-sql> select cast ('10.2222222222222222222222333333333333333' as char(5));
      10.2222222222222222222222333333333333333
      Time taken: 0.062 seconds, Fetched 1 row(s)
      spark-sql>
      

      postgresql
      select cast ('10.2222222222222222222222333333333333333' as char(5));
       

         bpchar
      1 10.22

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jobitmathew jobit mathew
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: