Hi, I'd like to make a proposal for a useful option for DynamicDataFrame.resolveChoice(): in case available choices are unknown until runtime, it would be great if resolveChoice() had an option that automatically find the "biggest" type among available ones and use it to cast all the others, and this should happen for each field that has a ChoiceType(), e.g. from this:
Hi, I'd like to make a proposal for a useful option for
DynamicDataFrame.resolveChoice()
: in case available choices are unknown until runtime, it would be great ifresolveChoice()
had an option that automatically find the "biggest" type among available ones and use it to cast all the others, and this should happen for each field that has aChoiceType()
, e.g. from this:To this:
Of course this should happen if data types are compatible, so in cases like this:
The job should error out.