Hello, I am looking to determine the slope of a ti...
# troubleshooting
s
Hello, I am looking to determine the slope of a time series over a time window and so looking to determine the first and last value of the window. When I execute the following query (see below) in the console, it works. But when I run the query through the JDBC driver, I get an "Cannot parse table name from query" error (see exception below). Btw, I am using v1.1 of pinot client and JDBC libs. I would appreciate some feedback from the community. Thanks, Query: SELECT LAST_VALUE("value") OVER ( PARTITION BY "entity-id" ORDER BY "time" ) as value FROM WSHA_DERIVED_KPI_DATA WHERE metric = 'OTH_ODUK_STATS_RX_NE_UAS' AND "entity-id" = 'b537329c-e66b-3063-b937-b26443c8c5f0' AND "time" > 1737507466 ORDER BY "time" DESC LIMIT 1 OFFSET 0 OPTION(useMultistageEngine = true) Exception: 2025-02-05 005749,944 ERROR | https-jsse-nio-8080-exec-38 | org.apache.pinot.client.Connection | Cannot parse table name from query: SELECT LAST_VALUE("value") OVER ( PARTITION BY "entity-id" ORDER BY "time" ) as value FROM WSHA_DERIVED_KPI_DATA WHERE metric = 'OTH_ODUK_STATS_RX_NE_UAS' AND "entity-id" = 'b537329c-e66b-3063-b937-b26443c8c5f0' AND "time" > 1737507466 ORDER BY "time" DESC LIMIT 1 OFFSET 0 OPTION(useMultistageEngine=true) . Fallback to broker selector default. 2025-02-05T005749.948747092Z java.lang.ClassCastException: class org.apache.calcite.sql.SqlWindow cannot be cast to class org.apache.calcite.sql.SqlBasicCall (org.apache.calcite.sql.SqlWindow and org.apache.calcite.sql.SqlBasicCall are in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @7f31245a) 2025-02-05T005749.948844685Z at org.apache.pinot.sql.parsers.CalciteSqlParser.toExpression(CalciteSqlParser.java:776) 2025-02-05T005749.949055111Z at org.apache.pinot.sql.parsers.CalciteSqlParser.compileFunctionExpression(CalciteSqlParser.java:838) 2025-02-05T005749.949068365Z at org.apache.pinot.sql.parsers.CalciteSqlParser.toExpression(CalciteSqlParser.java:776) 2025-02-05T005749.949465982Z at org.apache.pinot.sql.parsers.CalciteSqlParser.toExpression(CalciteSqlParser.java:711) 2025-02-05T005749.949481482Z at org.apache.pinot.sql.parsers.CalciteSqlParser.convertSelectList(CalciteSqlParser.java:626) 2025-02-05T005749.949485880Z at org.apache.pinot.sql.parsers.CalciteSqlParser.compileSqlNodeToPinotQuery(CalciteSqlParser.java:476) 2025-02-05T005749.949489887Z at org.apache.pinot.client.Connection.resolveTableName(Connection.java:146) 2025-02-05T005749.949494045Z at org.apache.pinot.client.Connection.execute(Connection.java:96) 2025-02-05T005749.949640560Z at org.apache.pinot.client.Connection.execute(Connection.java:83) 2025-02-05T005749.949776496Z at org.apache.pinot.client.PinotStatement.executeQuery(PinotStatement.java:67) 2025-02-05T005749.949789230Z at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:453) 2025-02-05T005749.950222484Z at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:383) 2025-02-05T005749.950230459Z at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:466) 2025-02-05T005749.950234967Z at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:476)
m
@Kartik Khare ^^
s
@Kartik Khare, any thoughts you can share on this issue would be appreciated. Thanks!