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
Empty array in composite type is wrongly treated as NULL if field's type is Option[List[A]]
For example,
case class FooComposite(optional_list1: Option[List[Int]]) extends Struct
FooComposite(None) // correctly returned as `()`
FooComposite(Some(List.empty)) // incorrectly returned as `()`
FooComposite(Some(List(1))) // correctly returned as `({})`
If I change type to List[A] then it works fine (return FooComposite(Some(List.empty)) as ({})).
The text was updated successfully, but these errors were encountered:
@tminglei That's great news. Thanks for the follow up!
Always appreciate your time and efforts to maintain this repo. It's been helping our company lots!
Empty array in composite type is wrongly treated as
NULL
if field's type isOption[List[A]]
For example,
If I change type to
List[A]
then it works fine (returnFooComposite(Some(List.empty))
as({})
).The text was updated successfully, but these errors were encountered: