Open lelewolf opened 3 weeks ago
@lelewolf Thank you for reporting! We will look into it.
Good day, @lelewolf !
I've not reproduced the issue. Here is my PR with test https://github.com/ClickHouse/clickhouse-java/pull/1914 Few things to mention:
executeSQLQuery
in your code? Is it doing something with metrics? Thanks!
Describe the bug
After executing an SQL query, attempting to retrieve ServerMetrics.ELAPSED_TIME or ServerMetrics.RESULT_ROWS from OperationMetrics results in a NullPointerException. This error indicates that metrics.getMetric() is returning null, likely because the OperationMetrics instance did not record the relevant metrics correctly.
Steps to reproduce
Expected behaviour
Code example
Error log
Cannot invoke "com.clickhouse.client.api.metrics.Metric.getLong()" because the return value of "com.clickhouse.client.api.metrics.OperationMetrics.getMetric(com.clickhouse.client.api.metrics.ServerMetrics)" is null
Configuration
Environment
ClickHouse server
CREATE TABLE
statements for tables involved: