Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functional q queries #75

Open
rishabhnitc opened this issue Apr 2, 2020 · 0 comments
Open

functional q queries #75

rishabhnitc opened this issue Apr 2, 2020 · 0 comments

Comments

@rishabhnitc
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant