Skip to content

functional q queries #75

@rishabhnitc

Description

@rishabhnitc

As also described
https://stackoverflow.com/questions/60989393/qpython-functional-queries

I am trying to make functional queries to q by passing where condition.
when
in q:

fn:{[c]
    t: (select from tbl);
    :?[t;c;0b;()];
}

in Python

c = [['=', numpy.string_('TradeId'), 123456]]
result = conn.sendSync('fn', c)

the operator is passed as a string. I have tried with sending this as a symbol, as a Qfunction but doesn't work

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