Commit b2cbdbc
committed
fix: round 3 — DB adapter query coverage + null-type cross-type fallback
Database adapter: convertQueriesToDatabase() previously dropped
TYPE_NOT_EQUAL, TYPE_NOT_BETWEEN, TYPE_NOT_CONTAINS, TYPE_STARTS_WITH,
and TYPE_ENDS_WITH silently — the switch had no case for them so the
WHERE fragment was skipped, turning a "not X" or "starts with Y"
filter into a full-collection match. Adds all five.
ClickHouse adapter: find()/count()/getTimeSeries() with $type=null
queried both events and gauges. When the query referenced an
event-only attribute like 'path', the gauge iteration would throw
"Invalid attribute name: path" via parseQueries(). Adds a private
queriesMatchType() helper that pre-checks each filter attribute
against the type's schema; skip the table when not satisfied. The
caller now gets the events side without the gauge crash, which is
what null-type semantics should mean.
sum() takes type=TYPE_EVENT as a hard default, no null-type path.1 parent b90879a commit b2cbdbc
2 files changed
Lines changed: 86 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1500 | 1500 | | |
1501 | 1501 | | |
1502 | 1502 | | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
| 1506 | + | |
| 1507 | + | |
| 1508 | + | |
| 1509 | + | |
| 1510 | + | |
1506 | 1511 | | |
1507 | 1512 | | |
1508 | 1513 | | |
| |||
1513 | 1518 | | |
1514 | 1519 | | |
1515 | 1520 | | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
| 1551 | + | |
| 1552 | + | |
1516 | 1553 | | |
1517 | 1554 | | |
1518 | 1555 | | |
| |||
1752 | 1789 | | |
1753 | 1790 | | |
1754 | 1791 | | |
1755 | | - | |
1756 | | - | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1757 | 1801 | | |
1758 | 1802 | | |
1759 | 1803 | | |
| |||
2055 | 2099 | | |
2056 | 2100 | | |
2057 | 2101 | | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
2058 | 2109 | | |
2059 | 2110 | | |
2060 | 2111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
414 | 444 | | |
415 | 445 | | |
416 | 446 | | |
| |||
0 commit comments