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

Defective schema generation on array/seq column #770

Closed
tribbloid opened this issue Nov 10, 2023 · 5 comments
Closed

Defective schema generation on array/seq column #770

tribbloid opened this issue Nov 10, 2023 · 5 comments

Comments

@tribbloid
Copy link

tribbloid commented Nov 10, 2023

To reproduce:

object NestedFieldWithColumn {

  case class Inner(
      v: Int,
      a: String,
      b: String
  )

  case class Outer1(
      in: Inner,
      aux1: String,
      aux2: String
  )

  case class OuterN(
      ins: Seq[Inner],
      aux1: String,
      aux2: String
  )

}

      val rows = Seq(
        OuterN(
          Seq(
            Inner(1, "a", "b"),
            Inner(1, "a", "b")
          ),
          "c",
          "d"
        ),
        OuterN(
          Seq(
            Inner(1, "a", "b"),
            Inner(1, "a", "b")
          ),
          "c",
          "d"
        )
      )

      val ds2 = TypedDataset.create(rows)

this will cause the error java.lang.NoSuchMethodError: 'boolean org.apache.spark.sql.catalyst.ScalaReflection$.isNativeType(org.apache.spark.sql.types.DataType)'

Looks like a version compatibility issue but it is not, the same error will be thrown for any Spark v3.4.0+

@tribbloid
Copy link
Author

Ah, looks like its a duplicate of #755, these 2 should be closed simultaneously

@pomadchin
Copy link
Member

Hey @tribbloid, what Spark and Frameless version do you use?

@tribbloid
Copy link
Author

3.5.0 & 0.15.0 😱

@pomadchin
Copy link
Member

pomadchin commented Nov 11, 2023

Haha sounds about right, we need to cut a 3.5.x release.

So sad that they broke API again.

@pomadchin
Copy link
Member

Closed via #772

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants