Sevvy Yusuf
03/07/2022, 3:09 PMLASTWITHTIME
. The first time I run the query (SELECT * FROM catalog.schema."SELECT LASTWITHTIME(dataColumnName, timeColumnName, 'STRING') FROM tableName WHERE column = 'someColumnValue' LIMIT 10";
) I get the following error:
java.lang.ExceptionInInitializerError
at org.apache.pinot.common.function.TransformFunctionType.getTransformFunctionType(TransformFunctionType.java:106)
Any consecutive runs of the query produce the following error:
java.lang.NoClassDefFoundError: Could not initialize class org.apache.pinot.common.function.FunctionRegistry
at org.apache.pinot.common.function.TransformFunctionType.getTransformFunctionType(TransformFunctionType.java:106)
Other queries, including dynamic queries work okay. I am using Pinot version 0.9.3. Has anyone come across this before? Any help would be appreciated, many thanks in advance!Mayank
Mayank
Sevvy Yusuf
03/07/2022, 3:34 PMSELECT * FROM catalog.schema."SELECT columnName FROM table LIMIT 1";
Richard Startin
03/07/2022, 4:19 PMRichard Startin
03/07/2022, 4:21 PMSevvy Yusuf
03/07/2022, 5:26 PMMayank
Mayank
Mayank
Sevvy Yusuf
03/07/2022, 5:41 PMexplain analyze
throws this error too:
Query 20220307_173536_00009_bawgb failed: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pinot.common.function.FunctionRegistry
Sevvy Yusuf
03/07/2022, 5:43 PMorg.apache.pinot.common.function.TransformFunctionType.getTransformFunctionType(TransformFunctionType.java:106
Richard Startin
03/07/2022, 5:47 PMNoClassDefFoundError
means that the class could not be loaded but not because the classfile is missingRichard Startin
03/07/2022, 5:47 PMSevvy Yusuf
03/08/2022, 12:55 PMUnexpected aggregate expression: 'lastwithtime(id,timestamp,'string')'
I have opened this issue as it doesn't look like the FunctionRegistry contains LASTWITHTIME when it's initialized from my logs. Thank you all again!Mayank
Elon
03/08/2022, 4:05 PMElon
03/08/2022, 4:06 PMElon
03/08/2022, 4:17 PMSevvy Yusuf
03/08/2022, 5:10 PMElon
03/08/2022, 5:11 PMid
field be? Assuming timestamp
is a long, right?Lars-Kristian Svenøy
03/08/2022, 5:12 PMSevvy Yusuf
03/08/2022, 5:12 PMid
field is a String and yep the timestamp
is a LongElon
03/08/2022, 5:12 PMfrancoisa
03/11/2022, 11:04 AMElon
03/14/2022, 8:25 PMElon
03/14/2022, 8:25 PMLars-Kristian Svenøy
03/15/2022, 1:18 PMSevvy Yusuf
03/23/2022, 3:56 PMQuery 20220323_155125_00000_kskyw failed: Unexpected aggregate expression: 'lastwithtime(id,timestamp,'string')'
Looks like the lastwithtime
function isn't part of the TransformFunctionType
enum class (link). Could this be causing the issue?Elon
03/23/2022, 4:03 PMElon
03/23/2022, 4:03 PMElon
03/23/2022, 4:24 PMSevvy Yusuf
03/23/2022, 5:43 PMSELECT * FROM catalog.default."SELECT LASTWITHTIME(id, timestamp, 'STRING') FROM table WHERE field = 'something' LIMIT 10";
The connector we're using is basically a fork from Trino 371, we upgraded Pinot version to 0.9.3 and I've just brought in all the changes in your PR above and it's still coming back with that errorElon
03/23/2022, 7:11 PMSevvy Yusuf
03/24/2022, 4:13 PMSevvy Yusuf
04/20/2022, 8:09 AMElon
04/20/2022, 8:13 AMLars-Kristian Svenøy
04/22/2022, 12:36 PM