Repository navigation
Backlog
Labels
MetaMeta issue, not directly linked to a PRPPLPiped processing languagebugSomething isn't workingdynamic-testIssues found by or related to Dynamic Testing
Description
What is this?
I've been working on a Hegel-based property testing suite for our type resolution logic, inspired by prior work in #5754 and #5829. I have an initial version in my utils repo. The suite generates queries over a small fixture index, and attempts to find cases where queries that "should" work (according to the type signatures) don't. These efforts have found over 20 bugs so far. I'm making this meta issue for keeping track of them since most of them follow the same formula and can probably be resolved in bulk.
Planner hangs, OOM and node crashes (highest severity)
- [BUG] Stacked
statswithdc()makes the planner loop until the node OOMs (query is not cancellable) #6007 Stackedstatswithdc()makes the planner loop until the node OOMs (fixed by Fix duplicate project pushdown guard that never matched #6008) - Fixed in Fix another infinite loop in volcano rules + configurable rule-call limit #6011:
stats avg(l) | head 1 from 1loops in Volcano (limit with offset over a global aggregate) - Fixed in Fix another infinite loop in volcano rules + configurable rule-call limit #6011: An
Errorthrown by generated code on thesql-complex-workerpool exits the node (top 1 l | eval e = floor('')) -
stats count() as a, min(k) as b by t | sort b | stats avg(a) by t, bplanner loop: no longer reproduces on Fix another infinite loop in volcano rules + configurable rule-call limit #6011 (not bisected)
500s from planning or codegen
- [BUG]
statsfollowed bystats count()returns 500 "Index -1 out of bounds for length 0" #5984statsfollowed bystats count()returns 500 "Index -1 out of bounds for length 0" - [BUG] Stacked stats with dc() returns 500 "There are not enough rules to produce a node" #6023 stacked
statswithdc()returns 500 "There are not enough rules to produce a node" (the safe repro from [BUG] Stackedstatswithdc()makes the planner loop until the node OOMs (query is not cancellable) #6007, still failing) - [BUG] dc() over a NOT NULL column alongside another aggregation returns 500 "Type mismatch" #6016
dc()over a NOT NULL column alongside another aggregation returns 500 "Type mismatch" - [BUG] cast(cast(<boolean> as int) as long) returns 500 #6014
cast(cast(<boolean> as int) as long)returns 500 (Janino,case_when_value) - [BUG] avg() over a stats output that was filtered to zero rows returns 500 NullPointerException #6013
avg()over a bigintstatsoutput that was filtered to zero rows returns 500 NullPointerException - [BUG] Non-boolean operands to
not/and/or/wherereturn 500 #5986 Non-boolean operands tonot/and/or/wherereturn 500 - [BUG] concat, concat_ws, locate, position and truncate return 500 on an argument type they do not support #5886 concat, concat_ws, locate, position and truncate return 500 on an argument type they do not support
- [BUG] Comparing a string field to both an integer and a decimal literal returns 500 ClassCastException #5989 Comparing a string field to both an integer and a decimal literal returns 500 ClassCastException
- [BUG]
cast(<boolean> as double)returns 500 #5987cast(<boolean> as double)returns 500 (fixed by [BugFix] Support cast of boolean to double and float in Calcite (#5987) #5993) - Fixed in Fix another infinite loop in volcano rules + configurable rule-call limit #6011:
head 1 | head 6 from 2returns 500[size] parameter cannot be negative
Client errors returned as 500
- [BUG] Invalid values in
whereandsubstringreturn 500 instead of 400 #5988 Invalid values inwhereandsubstringreturn 500 instead of 400 (see also PPL (Calcite/v3): valid Unicode string literals and invalid function arguments return HTTP 500 instead of 4xx #5773) - [BUG] locate() with start position 0 returns 500 #6021
locate(substr, str, 0)returns 500
Wrong results or wrong response schema (silent)
- [BUG]
eval x = xafterstatssilently renamesxtox0#5985eval x = xafterstatssilently renamesxtox0 - [BUG] eval alias after a single-column fields and a where/sort keeps the old column name #6017
eval e = <col>after a single-columnfieldsand awhere/sortkeeps the old column name - [BUG] rename right after dedup keeps the old name in the response schema #6018
renameright afterdedupkeeps the old name in the response schema - [BUG] Identical aggregations in one stats are merged and the second alias is lost #6019 Identical aggregations in one
statsare merged and the second alias is lost - [BUG] cast(<timestamp> as long|double) returns null instead of an error #6015
cast(<timestamp> as long|double)returns null instead of an error - [BUG] Object-vs-scalar mapping conflict across a wildcard resolves nondeterministically (last-write-wins) #5752, [BUG] A field mapped as different types across indices returns changed or null values with HTTP 200 #5828, [FEATURE] Define a schema-conflict and mismatched-data handling policy for multi-index queries #5610 Cross-index type conflicts resolve nondeterministically, and the losing values become null
Wrong rejections (4xx for a valid query)
- [BUG] sort on a text field with dedup or a computed key returns 400 "Text fields are not optimised for sorting" #6020
sorton a text field followed bydedup, or with a computed sort key, returns 400 "Text fields are not optimised for sorting" - [BUG] floor/ceil on an invalid constant string return 400 while other numeric functions return null #6022
floor/ceilon an invalid constant string return 400 while every other numeric function returns null
Metadata
Metadata
Assignees
Labels
MetaMeta issue, not directly linked to a PRPPLPiped processing languagebugSomething isn't workingdynamic-testIssues found by or related to Dynamic Testing
Type
Projects
- StatusShow more project fieldsNot Started
Activity