Skip to content

within rejected as a select where predicate #284

Description

@demyan

within works as a plain vector op but cannot be used inside a select where: clause - the DAG compiler rejects it:

‣ (set t (table [sn] (list [1 2 3 4 5])))
┌─────────────────────────────────────┐
│                 sn                  │
│                 I64                 │
├─────────────────────────────────────┤
│ 1                                   │
│ 2                                   │
│ 3                                   │
│ 4                                   │
│ 5                                   │
├─────────────────────────────────────┤
│ 5 rows (5 shown) 1 columns (1 shown)│
└─────────────────────────────────────┘
‣ (select {from: t where: (within sn (enlist 2 4)) c: sn})
error: domain: WHERE predicate not supported by DAG compiler — most common causes: arity mismatch (e.g. `(in v)` instead of `(in col v)`), unknown function name, unsupported special form, or a sub-expression the compiler can't lower

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions