Priyank Bagrecha
06/22/2022, 8:30 AMfield = 'Some Value'
returns no result because it gets translated to field = 'some value'
. did anyone figure out a way to resolve this issue?Priyank Bagrecha
06/22/2022, 10:27 PMNeha Pawar
Elon
06/22/2022, 11:22 PMElon
06/22/2022, 11:23 PMfield = upper('my uppercase string')
Elon
06/22/2022, 11:23 PMPriyank Bagrecha
06/22/2022, 11:25 PMvaluein
where i don't have the option of sending that outside of double quotes as i am querying from looker to pinot via trino.Elon
06/22/2022, 11:26 PMIN ('value1', 'value2', ...)
work? Or that is not pushed down? I can check alsoElon
06/22/2022, 11:26 PMPriyank Bagrecha
06/22/2022, 11:28 PMSELECT VALUEIN(myfield, 'Value One', 'vAluE TwO') AS bucket_id,
DISTINCTCOUNTHLL(account_id) AS distinct_allocations
FROM allocation_events
WHERE myfield IN ('Value One', 'vAluE TwO')
GROUP BY bucket_id
and valuein
is not registered in looker, so i have to include the entire query in double quotes. what that means is that trino receives this query from looker
SELECT * FROM default."SELECT VALUEIN(myfield, 'Value One', 'vAluE TwO') AS bucket_id,
DISTINCTCOUNTHLL(account_id) AS distinct_allocations
FROM allocation_events
WHERE myfield IN ('Value One', 'vAluE TwO')
GROUP BY bucket_id"
Note that myfield
is an array of strings.Elon
06/22/2022, 11:31 PMselect ... from "select valuein(concat(upper('v'), 'alue', '')...
Priyank Bagrecha
06/22/2022, 11:35 PMvaluein
comes from user input lol. for now i am just lower casing data as it goes into pinot, but it might not work for some other use cases where we need to be case sensitive.Priyank Bagrecha
06/22/2022, 11:41 PMElon
06/22/2022, 11:41 PMElon
06/22/2022, 11:42 PMElon
06/22/2022, 11:42 PMPriyank Bagrecha
06/22/2022, 11:42 PMPriyank Bagrecha
06/22/2022, 11:43 PMElon
06/22/2022, 11:44 PMElon
06/22/2022, 11:44 PMElon
06/22/2022, 11:44 PMPriyank Bagrecha
06/22/2022, 11:46 PMElon
06/22/2022, 11:46 PMElon
06/22/2022, 11:47 PMPriyank Bagrecha
06/22/2022, 11:47 PMElon
06/22/2022, 11:47 PMPriyank Bagrecha
06/22/2022, 11:52 PMPriyank Bagrecha
06/22/2022, 11:52 PMElon
06/27/2022, 4:44 PMPriyank Bagrecha
06/28/2022, 5:24 PMElon
06/28/2022, 5:24 PMPriyank Bagrecha
06/28/2022, 5:34 PMCase 1a
The following pass-through query returns NULL value as the result:
SELECT * FROM pinot.default."
SELECT COUNT(*)
FROM tab
WHERE col_str1 = 'SOME_STRING_VALUE'
";
When reading the logical query plan in Trino, the string value SOME_STRING_VALUE in the WHERE clause gets lowercased, hence the Pinot connector in Trino receives the value some_string_value.
In Pinot, this query works as expected.
I am using Trino version 378.Priyank Bagrecha
06/28/2022, 7:29 PMElon
06/28/2022, 7:30 PMElon
06/28/2022, 7:30 PM