Skip to content

Eval failed #802

@FluorineDog

Description

@FluorineDog

Describe the bug
evaluation is failed

To Reproduce
Steps to reproduce the behavior:

import org.apache.spark.sql.arctern.functions._
import org.apache.spark.sql.functions._

class IndexedWithinTest extends AdapterTest {
  test("naive") {
    val ss = spark
    import ss.implicits._
    val points_text = Seq(
      "Point(1 1)",
      "Point(1 2)",
      "Point(2 1)",
      "Point(2 2)",
      "Point(4 5)",
      "Point(8 8)",
      "Point(10 10)",
    ).toDF("points_text").withColumn("attr", monotonically_increasing_id())
    val polygons_text = Seq(
      "Polygon((0 0, 3 0, 3 3, 0 3, 0 0))",
      "Polygon((6 6, 3 6, 3 3, 6 3, 6 6))",
      "Polygon((6 6, 9 6, 9 9, 6 9, 6 6))",
    ).toDF("polygons_text").withColumn("id", monotonically_increasing_id())
    
    val points = points_text.select(st_geomfromtext('points_text).as("points"))
    val polygons = polygons_text.select(st_astext(st_geomfromtext('polygons_text)).as("polygons_text_again"))

    // both are unusable
    points.show()
    polygons.show()

  }
}

Expected behavior
runnable

Any logs, error output, snapshot, etc?

call implement method
java.lang.RuntimeException: call implement method
	at org.apache.spark.sql.arctern.expressions.ST_UnaryOp.eval(Functions.scala:287)

Metadata

Metadata

Assignees

Labels

arctern-0.3.0arctern-0.3.0bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions