\ Using Presto version 0.141t and my prestogres would be 3.4.0 (latest)
I'm using CONTAINS function inside a calculated field as follow
And the error is as follow
I got raw sql from pgpool-II
SELECT (CASE WHEN (STRPOS(CAST("product_master_2016"."product" AS TEXT),CAST('Fresh' AS TEXT)) > 0) THEN 'Test' ELSE NULL END) AS "Calculation_250231285777633280", "product_master_2016"."product" AS "product" FROM "default"."product_master_2016" "product_master_2016" GROUP BY 1, 2
Direct query from command line "psql -h 127.0.0.1 -p 5439 -U presto hive" also show error like this
I understand that PostgreSQL supports data type TEXT but Presto doesn't have TEXT (according to Presto Doc). So how would I make this function CONTAINS works? Is there any way that I can set VARCHAR as a default data type for string??
\ Using Presto version 0.141t and my prestogres would be 3.4.0 (latest)
I'm using CONTAINS function inside a calculated field as follow
And the error is as follow
I got raw sql from pgpool-II
SELECT (CASE WHEN (STRPOS(CAST("product_master_2016"."product" AS TEXT),CAST('Fresh' AS TEXT)) > 0) THEN 'Test' ELSE NULL END) AS "Calculation_250231285777633280", "product_master_2016"."product" AS "product" FROM "default"."product_master_2016" "product_master_2016" GROUP BY 1, 2
Direct query from command line "psql -h 127.0.0.1 -p 5439 -U presto hive" also show error like this
I understand that PostgreSQL supports data type TEXT but Presto doesn't have TEXT (according to Presto Doc). So how would I make this function CONTAINS works? Is there any way that I can set VARCHAR as a default data type for string??