Skip to content

Validate StarRocks macro set on a live cluster (syntax gaps the docs don't cover) #2398

Open

Description

@blarghmatey

Description/Context

Items the StarRocks docs are silent on — validate on the QA StarRocks cluster before declaring the macro set done:

  1. cross join unnest(...) / cross join lateral json_each(...) — docs only show the comma-join lateral form; call sites use cross join {{ ... }}.
  2. date_format / str_to_date pass-through of literal 'T'/'Z' in format strings (assumed standard MySQL behavior).
  3. %f output width (6 digits assumed).
  4. cast(varchar as date/datetime) NULL-on-failure behavior (documented for JSON/overflow, not exhaustively for varchar→date).
  5. Confirm cluster version ≥ 3.3.5 (DATETIME µs floor).

Plan/Design

Build a small dbt integration test model exercising every starrocks__ variant with edge-case inputs (nulls, Z-suffix, offsets, malformed JSON, non-scalar JSON paths). Also verify last_value frame semantics with an explicit-frame test (SR ROWS default vs Trino RANGE).

Blocked by the implement-18-variants and fix-3-buggy-variants tasks. Related ready task: tk-verify-live-jwt-auth-test-in-qa-starrocks-cluste-de18c1 (cluster access).


P2. Part of #2375 (2026-07 dbt warehouse audit). Witan task: tk-validate-starrocks-macro-set-on-a-live-cluster-s-82d4c1.

Activity

  1. blarghmatey commented on Aug 20, 2026

    @blarghmatey
    MemberAuthor

    Triage pass 2026-08-20 - this is now unblocked. The "Blocked by" line is stale.

    Both blockers landed: #2396 (18 missing starrocks__ variants, fb61916 / PR #2417) and #2397 (3 buggy variants, f2de6a0 / PR #2401). macros/cross_db_functions.sql now carries 18 starrocks__ variants.

    No validation artifact exists yet, so the issue itself is entirely open. git log --grep starrocks since 2026-07-06 shows only b2b_analytics MV and infra work (5d25df4, bddc05c, 626d57d), none of which exercises the edge cases listed here. Note that 7718399 actually removed the StarRocks smoke-test model, so there is no integration-test model exercising the macro set at present - standing one up is probably the first step.

    The cluster-access side may already be handled: a starrocks_qa target exists at profiles.yml:80-99.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions