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
With the RAPIDS Accelerator cost-based optimizer enabled, queries with window expressions fail when we attempt to estimate data sizes, because WindowFrame.dataType throws UnsupportedOperationException.
[2021-05-22T11:55:11.887Z] java.lang.UnsupportedOperationException: dataType^M
[2021-05-22T11:55:11.887Z] at org.apache.****.sql.catalyst.expressions.WindowFrame.dataType(windowExpressions.scala:168)^M
[2021-05-22T11:55:11.887Z] at org.apache.****.sql.catalyst.expressions.WindowFrame.dataType$(windowExpressions.scala:168)^M
[2021-05-22T11:55:11.887Z] at org.apache.****.sql.catalyst.expressions.SpecifiedWindowFrame.dataType(windowExpressions.scala:179)^M
[2021-05-22T11:55:11.887Z] at com.nvidia.****.rapids.BaseExprMeta.dataType(RapidsMeta.scala:758)^M
[2021-05-22T11:55:11.887Z] at com.nvidia.****.rapids.CpuCostModel.exprCost(CostBasedOptimizer.scala:282)^M
Steps/Code to reproduce bug
Run NDS query q89 with CBO enabled.
Expected behavior
Query should not fail.
Environment details (please complete the following information)
N/A
Additional context
None
The text was updated successfully, but these errors were encountered:
Ya there is some oddness with data type for a WindowSpecDefinition. For what ever reason they throw nsupportedOperationException("dataType"), so we probably need to have some special case code for them like we have here.
Describe the bug
With the RAPIDS Accelerator cost-based optimizer enabled, queries with window expressions fail when we attempt to estimate data sizes, because
WindowFrame.dataType
throwsUnsupportedOperationException
.Steps/Code to reproduce bug
Run NDS query q89 with CBO enabled.
Expected behavior
Query should not fail.
Environment details (please complete the following information)
N/A
Additional context
None
The text was updated successfully, but these errors were encountered: