Closed koperagen closed 9 months ago
Code with such type cannot be compiled Given type URI!, type.withNullability will produce either URI or URI?.
When will it produce either the nullable one or the non-nullable one?
I just wanted to say that calling type.withNullability
fixes platform type. It becomes something dataframe codegen can work with :) In our case this function is called when Infer.Nulls
is used, in which case actual nullability depends on data.
Platform types can lead to unexpected NPE and the way types rendered now: "URI!" - ! sign appears. Code with such type cannot be compiled Given type URI!, type.withNullability will produce either URI or URI?. Both are OK for us.