Github user bomeng commented on the pull request:

    https://github.com/apache/spark/pull/11900#issuecomment-200064157
  
    for example, test("Test to check we can use Long.MinValue") in the 
SQLQuerySuite.scala: 
    ```
        checkAnswer(
          sql(s"SELECT key FROM testData WHERE key > ${Long.MinValue}"),
          (1 to 100).map(Row(_)).toSeq
        )
    
    It will generate the codes as (partially) :
    /* 060 */       boolean filter_isNull3 = filter_isNull4;
    /* 061 */       Decimal filter_value3 = null;
    /* 062 */       if (!filter_isNull4) {
    /* 063 */         Decimal filter_tmpDecimal1 = filter_value4.clone();
    /* 064 */         
    /* 065 */         if (filter_tmpDecimal1.changePrecision(19, 0)) {
    /* 066 */           filter_value3 = filter_tmpDecimal1;
    /* 067 */         } else {
    /* 068 */           filter_isNull3 = true;
    /* 069 */         }
    /* 070 */         
    /* 071 */       }
    /* 072 */       if (!(!(filter_isNull3))) continue;
    /* 073 */       
    /* 074 */       /* (cast(cast(input[0, int] as decimal(10,0)) as 
decimal(19,0)) > -9223372036854775808) */
    /* 075 */       boolean filter_isNull6 = true;
    /* 076 */       boolean filter_value6 = false;
    /* 077 */       /* cast(cast(input[0, int] as decimal(10,0)) as 
decimal(19,0)) */
    /* 078 */       /* cast(input[0, int] as decimal(10,0)) */
    /* 079 */       boolean filter_isNull8 = false;
    /* 080 */       Decimal filter_value8 = null;
    
    See line 072. There are also bunch of similar test cases in 
SQLQuerySuite.scala will generate this.
    ```


---
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