Is it possible to do something like the following?
@FunctionHint(
output = new DataTypeHint(s"is_$role BOOLEAN")
)
class Func(role: String) extends TableFunction[Boolean] {
...
}
Notice the use of role
in the Annotation which is a field on the Object being annotated.
Aucun commentaire:
Enregistrer un commentaire