Skip to content

Sum function does not support float32 type #775

@wForget

Description

@wForget

Describe the bug

error:

25/01/18 17:10:41 ERROR Executor: Exception in task 0.0 in stage 1.0 (TID 1)
java.lang.RuntimeException: called `Result::unwrap()` on an `Err` value: Execution("cannot create execution plan: DataFusionError(Plan(\"SUM does not support type \\\"Float32\\\"\"))")
	at org.apache.spark.sql.blaze.JniBridge.callNative(Native Method)
	at org.apache.spark.sql.blaze.BlazeCallNativeWrapper.<init>(BlazeCallNativeWrapper.scala:66)
	at org.apache.spark.sql.blaze.NativeHelper$.executeNativePlan(NativeHelper.scala:89)
	at org.apache.spark.sql.execution.blaze.shuffle.BlazeShuffleWriterBase.nativeShuffleWrite(BlazeShuffleWriterBase.scala:80)
	at org.apache.spark.sql.execution.blaze.plan.NativeShuffleExchangeExec$$anon$1.write(NativeShuffleExchangeExec.scala:159)
	at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:104)

To Reproduce

create table t1 using parquet as select 1.0f as c1;
select sum(c1) from t1;

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions