You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler crashes with Error: Unexpected error when compiling project_ea109e5296_ea109e5296-b3409dd64e: 'class Class' when trying to derive an instance of TypeInformation[?] for a case class that uses org.apache.flink.table.annotation.DataTypeHint
I minimized the issue to the following, runnable with scala-cli
I tried replicating this locally, it only fails on Scala 3, 2.12 & 2.13 work. I think this may be a Scala 3 compiler bug. 😅
packageio.findify.flinkadtimportio.findify.flinkadt.api._importorg.apache.flink.table.annotation.DataTypeHintimportorg.scalatest.flatspec.AnyFlatSpecimportorg.scalatest.matchers.should.MatchersclassDataTypeHintTestextendsAnyFlatSpecwithMatchers {
it should "support deriving type information with data type hints" in {
drop(deriveTypeInformation[UsesDataTypeHint])
}
}
caseclassUsesDataTypeHint(@DataTypeHint("BIGINT") foo: Long)
Scala 3 error:
Error while emitting DataTypeHintTest.scala
...
[error] java.util.NoSuchElementException: class Class
[error] scala.collection.mutable.AnyRefMap$ExceptionDefault.apply(AnyRefMap.scala:508)
[error] scala.collection.mutable.AnyRefMap$ExceptionDefault.apply(AnyRefMap.scala:507)
I tried replicating this locally, it only fails on Scala 3, 2.12 & 2.13 work. I think this may be a Scala 3 compiler bug. 😅
Thanks for confirming. I tried replicating the issue by reimplementing the DataTypeHint interface but couldn't get it to trigger when I did so. I'll re-report the issue in the dotty-repo and see if they can help me out.
Scala version: 3.1.3
The compiler crashes with
Error: Unexpected error when compiling project_ea109e5296_ea109e5296-b3409dd64e: 'class Class'
when trying to derive an instance ofTypeInformation[?]
for a case class that usesorg.apache.flink.table.annotation.DataTypeHint
I minimized the issue to the following, runnable with scala-cli
The text was updated successfully, but these errors were encountered: