You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "loudongfeng (via GitHub)" <gi...@apache.org> on 2024/08/01 12:51:16 UTC

[I] [CH]map function issue: Unscaled value too large for precision [incubator-gluten]

loudongfeng opened a new issue, #6681:
URL: https://github.com/apache/incubator-gluten/issues/6681

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   sql:
   ``` sql
    SELECT map(1.0, '1', 2.0, '2');
   ```
   will fail: 
   ``` log
   java.lang.ArithmeticException: Unscaled value too large for precision. If necessary set spark.sql.ansi.enabled to false to bypass this error.
   	at org.apache.spark.sql.errors.QueryExecutionErrors$.unscaledValueTooLargeForPrecisionError(QueryExecutionErrors.scala:1008)
   	at org.apache.spark.sql.types.Decimal.set(Decimal.scala:84)
   	at org.apache.spark.sql.types.Decimal$.apply(Decimal.scala:593)
   	at org.apache.spark.sql.types.Decimal.apply(Decimal.scala)
   	at org.apache.spark.sql.catalyst.expressions.UnsafeArrayData.getDecimal(UnsafeArrayData.java:193)
   	at org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getAccessor$11(InternalRow.scala:144)
   	at org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getAccessor$11$adapted(InternalRow.scala:144)
   	at org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getAccessor$16(InternalRow.scala:157)
   	at org.apache.spark.sql.catalyst.InternalRow$.$anonfun$getAccessor$16$adapted(InternalRow.scala:153)
   	at org.apache.spark.sql.catalyst.util.ArrayData.toArray(ArrayData.scala:173)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$MapConverter.toScala(CatalystTypeConverters.scala:226)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$MapConverter.toScalaImpl(CatalystTypeConverters.scala:238)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$MapConverter.toScalaImpl(CatalystTypeConverters.scala:200)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$CatalystTypeConverter.toScala(CatalystTypeConverters.scala:114)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$StructConverter.toScala(CatalystTypeConverters.scala:277)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$StructConverter.toScala(CatalystTypeConverters.scala:241)
   	at org.apache.spark.sql.catalyst.CatalystTypeConverters$.$anonfun$createToScalaConverter$2(CatalystTypeConverters.scala:490)
   	at org.apache.spark.sql.execution.SparkPlan.$anonfun$executeCollectPublic$1(SparkPlan.scala:451)
   	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
   	at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
   	at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
   	at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
   	at scala.collection.TraversableLike.map(TraversableLike.scala:286)
   	at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
   	at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
   	at org.apache.spark.sql.execution.SparkPlan.executeCollectPublic(SparkPlan.scala:451)
   	at org.apache.spark.sql.execution.HiveResult$.hiveResultString(HiveResult.scala:76)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLDriver.$anonfun$run$2(SparkSQLDriver.scala:69)
   	at org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$6(SQLExecution.scala:109)
   	at org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:169)
   	at org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:95)
   	at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:779)
   	at org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:64)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLDriver.run(SparkSQLDriver.scala:69)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processCmd(SparkSQLCLIDriver.scala:384)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.$anonfun$processLine$1(SparkSQLCLIDriver.scala:504)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.$anonfun$processLine$1$adapted(SparkSQLCLIDriver.scala:498)
   	at scala.collection.Iterator.foreach(Iterator.scala:943)
   	at scala.collection.Iterator.foreach$(Iterator.scala:943)
   	at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
   	at scala.collection.IterableLike.foreach(IterableLike.scala:74)
   	at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
   	at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processLine(SparkSQLCLIDriver.scala:498)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:286)
   	at org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala)
   	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   	at java.lang.reflect.Method.invoke(Method.java:498)
   	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
   	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:984)
   	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:191)
   	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:214)
   	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:90)
   	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1072)
   	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1081)
   	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   
   ```
   
   
   ### Spark version
   
   Spark-3.3.x
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org


Re: [I] [CH]map function issue: Unscaled value too large for precision [incubator-gluten]

Posted by "taiyang-li (via GitHub)" <gi...@apache.org>.
taiyang-li closed issue #6681: [CH]map function issue: Unscaled value too large for precision
URL: https://github.com/apache/incubator-gluten/issues/6681


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org