回复:UDA can't use int or text as state_type

2016-06-27 Thread lowping
problem solved !!! INITCOND {} should be INITCOND 0 原始邮件 发件人:lowpinglowp...@163.com 收件人:useru...@cassandra.apache.org 发送时间:2016年6月27日(周一) 16:03 主题:UDA can't use int or text as state_type Hi, all I got a problem today when I create a UDA like this. hope you guys help me solve this CREA

UDA can't use int or text as state_type

2016-06-27 Thread lowping
Hi, all I got a problem today when I create a UDA like this. hope you guys help me solve this CREATE OR REPLACE FUNCTION sum_fun(state int, type text) // if state type is SET or MAP , this is work CALLED ON NULL INPUT RETURNS int LANGUAGE java AS 'return Integer.parseInt(type)+state;' ; C

Re: 1) select collection_type whith keywork 'in' . 2)how to using UDFin update?

2016-06-26 Thread lowping
ded recipient, do not copy or disclose its content, but please reply to this email immediately and highlight the error to the sender and then immediately delete the message. On 26 June 2016 at 17:25, lowping lowp...@163.com wrote: Hi All: question 1: I got a error about this cql, does it fixed a

1) select collection_type whith keywork 'in' . 2)how to using UDF in update?

2016-06-26 Thread lowping
Hi All: question 1: I got a error about this cql, does it fixed already ??? select collection_type where id in (‘a’,’b’) question 2: I want use UDF in update, but this cql can’t execute. have some advise??? update table_name set field=my_function(field) where… tnk u so much

some questions

2016-06-25 Thread lowping
Hi : question 1: I got a error about this cql, have you fix it already ??? select collection_type where id in (‘a’,’b’) question 2: I want use UDF in update, but this cql can’t execute. have some advise??? update table_name set field=my_function(field) where… tnk u so much