Github user petermaxlee commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14592#discussion_r74367410
  
    --- Diff: 
sql/core/src/test/resources/sql-tests/results/number-format.sql.out ---
    @@ -19,16 +19,24 @@ struct<2147483648:bigint,(-2147483649):bigint>
     
     
     -- !query 2
    -select 9223372036854775808, -9223372036854775809
    +select 9223372036854775807, -9223372036854775808
     -- !query 2 schema
    
-struct<9223372036854775808:decimal(19,0),(-9223372036854775809):decimal(19,0)>
    +struct<9223372036854775807:bigint,(-9223372036854775808):decimal(19,0)>
    --- End diff --
    
    "-9223372036854775808" is a valid long value (Long.MinValue) but Spark 
treats it as a decimal(19, 0) because "9223372036854775808" is out of range. Is 
this expected?
    
    cc @cloud-fan 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to