date column which is a text type in Cassandra.so I need a UDF to convert that text to timestamp so I can query on that column
问题 I have writeen code like belo but getting error as below:- InvalidRequest: Error from server: code=2200 [Invalid query] message="Java source compilation failed: Line 1: java.util.String cannot be resolved to a type Line 1: Syntax error on token "Date", @ expected Line 4: SimpleDateFormat cannot be resolved to a type CREATE FUNCTION saumya.text2dt ( input text ) RETURNS NULL ON NULL INPUT RETURNS timestamp LANGUAGE java AS $$ java.text.ParseException java.text.SimpleDateFormat java.util.Date