Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eval failed #802

Open
FluorineDog opened this issue Jul 6, 2020 · 0 comments
Open

Eval failed #802

FluorineDog opened this issue Jul 6, 2020 · 0 comments
Assignees
Labels
arctern-0.3.0 arctern-0.3.0 bug Something isn't working

Comments

@FluorineDog
Copy link
Contributor

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)
@FluorineDog FluorineDog added the bug Something isn't working label Jul 6, 2020
@czs007 czs007 added the arctern-0.3.0 arctern-0.3.0 label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arctern-0.3.0 arctern-0.3.0 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants