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
{{ message }}
Repository navigation
Union types not handled when building AnalysisContext::try_from_column #8499
AnalysisContext will try and create a ScalarValue when there are no statistics for a given column. Since there is no ScalarValue representation for union types this fails.
The constructor is fallible so this isn't a bug per se, but in other contexts this value is unwrapped and can cause panics during query planning
To Reproduce
Minimized example of what we have observed causing panics during query planning:
With the new design of statistics underway, this problem may be resolved by simply using an absent interval. Unless it's an emergency, I don't think we should apply a temporary patch to the analysis context. It would be better to add missing scalar value variants.
With the new design of statistics underway, this problem may be resolved by simply using an absent interval. Unless it's an emergency, I don't think we should apply a temporary patch to the analysis context. It would be better to add missing scalar value variants.
Yeah, I agree. I think adding the missing scalar value variants is probably the better approach either way as there are probably other contexts where it would be useful to have them
Activity
thinkharderdev commentedon Dec 11, 2023
cc @Dandandan
alamb commentedon Dec 12, 2023
There is a similar report in #8262 (related to
Maptype)alamb commentedon Dec 12, 2023
cc @mustafasrepo
berkaysynnada commentedon Dec 13, 2023
With the new design of statistics underway, this problem may be resolved by simply using an absent interval. Unless it's an emergency, I don't think we should apply a temporary patch to the analysis context. It would be better to add missing scalar value variants.
thinkharderdev commentedon Dec 13, 2023
Yeah, I agree. I think adding the missing scalar value variants is probably the better approach either way as there are probably other contexts where it would be useful to have them