Ray's Knowledge Base
Unlock

duql list functions run as View column calls after the scan

DecisionVerified 2 Oct 2026Holds anywhere
Decision. The context, the choice, why, and the options that were turned down.

Context#

Implementing duql list functions (E7).

Decision#

List literals lower to TList (row evaluator: canonical JSON in the scratch arena); index_of/sort/unique/join use the evaluator cmp (numbers by value, sort nulls last, mixed types null, unique first occurrence, join skips nulls). After the scan all run as View column calls like slice/split (not evaluate_mask); join does not use StrFn::Join (it counts separators for nulls).

Why#

Reusing the View column-call route matches slice/split and avoids a second kernel path.

Rejected options#

New Series/C ABI list kernels.

Also found by searching

  • list literals lower to TList canonical JSON in the scratch arena
  • index_of sort unique join use the evaluator cmp
  • after the scan these run as View column calls like slice/split
  • join does not use StrFn::Join because it counts separators for nulls