Skip to content

Compiler crashes when deriving TypeInformation for case class with @DataTypeHint #41

@megri

Description

@megri

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 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

//> using scala "3.1.3"
//> using lib "org.apache.flink:flink-table-runtime:1.15.2"
//> using lib "io.findify::flink-adt:0.6.1"

package com.stuff

import io.findify.flinkadt.api.*
import org.apache.flink.table.annotation.DataTypeHint
import org.apache.flink.api.common.typeinfo.TypeInformation


case class Test(@DataTypeHint("BIGINT") timestamp: Long)

@main def run() =
  summon[TypeInformation[Test]]

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