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

How can I construct a bool constant cs? #32

Open
amutu opened this issue Apr 11, 2014 · 0 comments
Open

How can I construct a bool constant cs? #32

amutu opened this issue Apr 11, 2014 · 0 comments

Comments

@amutu
Copy link

amutu commented Apr 11, 2014

I can use cs = cs to get a boolean cs:

crash=> select cs_filter(cs_const(1)=cs_const(1),uin) from crashlog_get(604176597);
NOTICE: IMCS command: const
CONTEXT: PL/pgSQL function cs_const(double precision,cs_elem_type) line 1 at RETURN
NOTICE: IMCS command: const
CONTEXT: PL/pgSQL function cs_const(double precision,cs_elem_type) line 1 at RETURN
NOTICE: IMCS command: eq
NOTICE: IMCS command: filter

                                    cs_filter                                                              









int8:{1824680521,2619036035,1824680521,2115425441,1824680521,1824680521,2861741560,2516178417,1824680521,18246
80521,2861741560,1824680521,2606780563,1824680521,1824680521,1301356009,1824680521,2134037263,1824680521,246749
4502,1824680521,1824680521,1824680521,2861741560,1646011213,1647899823,2878643443,1824680521,2367894140,1240925

but I want to use the cs_const function to construct,now is failed:
crash=> select cs_filter(cs_parse('t','bool'),uin) from crashlog_get(604176597);
NOTICE: IMCS command: parse
CONTEXT: PL/pgSQL function cs_parse(text,cs_elem_type,integer) line 1 at RETURN
NOTICE: IMCS command: parse
CONTEXT: PL/pgSQL function cs_parse(text,cs_elem_type,integer) line 1 at RETURN
NOTICE: IMCS command: filter
ERROR: invalid input format of timeseries literal t
crash=> select cs_filter(cs_const('t'::boolean),uin) from crashlog_get(604176597);
ERROR: function cs_const(boolean) does not exist
LINE 1: select cs_filter(cs_const('t'::boolean),uin) from crashlog_g...

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