Re: Why Scala Option is not a valid key?
Posted by
Timur Fayruzov on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Why-Scala-Option-is-not-a-valid-key-tp5792p5794.html
There is some more detail to this question that I missed initially. It turns out that my key is a case class of a form MyKey(k1: Option[String], k2: Option[String]). Keys.SelectorFunctionKeys is performing a recursive check whether every element of the MyKey class can be a key and fails when encountering an Option.
Is it possible to work around this situation without giving up Options? Inability to use Options in Domain objects could be really frustrating.
Thanks,
Timur