mirror of https://github.com/apache/druid.git
Enable WINDOW_LEAF_OPERATOR for native engine to support queries without group by (#16753)
This commit is contained in:
parent
7f7e6ca1e5
commit
c9aae9d8e6
|
@ -109,6 +109,7 @@ public class NativeSqlEngine implements SqlEngine
|
|||
case ALLOW_TOP_LEVEL_UNION_ALL:
|
||||
case TIME_BOUNDARY_QUERY:
|
||||
case GROUPBY_IMPLICITLY_SORTS:
|
||||
case WINDOW_LEAF_OPERATOR:
|
||||
return true;
|
||||
case CAN_INSERT:
|
||||
case CAN_REPLACE:
|
||||
|
@ -116,7 +117,6 @@ public class NativeSqlEngine implements SqlEngine
|
|||
case WRITE_EXTERNAL_DATA:
|
||||
case SCAN_ORDER_BY_NON_TIME:
|
||||
case SCAN_NEEDS_SIGNATURE:
|
||||
case WINDOW_LEAF_OPERATOR:
|
||||
return false;
|
||||
default:
|
||||
throw SqlEngines.generateUnrecognizedFeatureException(NativeSqlEngine.class.getSimpleName(), feature);
|
||||
|
|
|
@ -15922,7 +15922,7 @@ public class CalciteQueryTest extends BaseCalciteQueryTest
|
|||
.run();
|
||||
}
|
||||
|
||||
@NotYetSupported(Modes.WINDOW_OPERATOR_QUERY_ON_UNSUPPORTED_DATASOURCE)
|
||||
@NotYetSupported(Modes.CANNOT_RETRIEVE_ROWS)
|
||||
@Test
|
||||
public void testWindowingOverJoin()
|
||||
{
|
||||
|
|
|
@ -89,7 +89,7 @@ public @interface NotYetSupported
|
|||
RESULT_MISMATCH(AssertionError.class, "(assertResulEquals|AssertionError: column content mismatch)"),
|
||||
LONG_CASTING(AssertionError.class, "expected: java.lang.Long"),
|
||||
UNSUPPORTED_NULL_ORDERING(DruidException.class, "(A|DE)SCENDING ordering with NULLS (LAST|FIRST)"),
|
||||
WINDOW_OPERATOR_QUERY_ON_UNSUPPORTED_DATASOURCE(DruidException.class, "WindowOperatorQuery must run on top of a query or inline data source"),
|
||||
CANNOT_RETRIEVE_ROWS(UnsupportedOperationException.class, "Cannot retrieve number of rows from join segment"),
|
||||
UNION_WITH_COMPLEX_OPERAND(DruidException.class, "Only Table and Values are supported as inputs for Union"),
|
||||
UNION_MORE_STRICT_ROWTYPE_CHECK(DruidException.class, "Row signature mismatch in Union inputs"),
|
||||
JOIN_CONDITION_NOT_PUSHED_CONDITION(DruidException.class, "SQL requires a join with '.*' condition"),
|
||||
|
|
Loading…
Reference in New Issue