You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/02/21 18:27:25 UTC

[GitHub] dongjoon-hyun edited a comment on issue #23851: [SPARK-26950][SQL][TEST] Make RandomDataGenerator use Float.NaN or Double.NaN for all NaN values

dongjoon-hyun edited a comment on issue #23851: [SPARK-26950][SQL][TEST] Make RandomDataGenerator use Float.NaN or Double.NaN for all NaN values
URL: https://github.com/apache/spark/pull/23851#issuecomment-466104618
 
 
   Thank you for review, @cloud-fan and @srowen .
   
   To @cloud-fan .
   `checkEvaluationWithUnsafeProjection` should handle more complex expressions like `from_avro(to_avro([NaN]), {"type":"record","name":"topLevelRecord","fields":[{"name":"col_1","type":["float","null"]}]})` described in the PR description. However,
   
   1. `NormalizeNaNAndZero` expects and handles `Float` and `Double` instances only.
   2. `NormalizeFloatingNumbers` expects `Plan`.
   
   We can wrap the first argument `expression`, but the second argument `expected` is `Any` type.
   ```scala
     protected def checkEvaluationWithUnsafeProjection(
         expression: Expression,
         expected: Any,
         inputRow: InternalRow = EmptyRow): Unit = {
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org