From ca75071cf1716090f3cd424fd4dd9061f1ae5282 Mon Sep 17 00:00:00 2001 From: 761417898 <761417898@qq.com> Date: Mon, 30 Mar 2026 21:22:21 +0800 Subject: [PATCH] Fix C++ query dataset timeout propagation Pass query timeout to SessionDataSet when executing query statements instead of reusing connection timeout, preventing large result scans from failing with query-not-found errors. --- iotdb-client/client-cpp/src/main/SessionConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotdb-client/client-cpp/src/main/SessionConnection.cpp b/iotdb-client/client-cpp/src/main/SessionConnection.cpp index 7ed903d24fb41..e4d369374c84e 100644 --- a/iotdb-client/client-cpp/src/main/SessionConnection.cpp +++ b/iotdb-client/client-cpp/src/main/SessionConnection.cpp @@ -209,7 +209,7 @@ std::unique_ptr SessionConnection::executeQueryStatement(const s return std::unique_ptr(new SessionDataSet(sql, resp.columns, resp.dataTypeList, resp.columnNameIndexMap, resp.queryId, statementId, client, sessionId, resp.queryResult, resp.ignoreTimeStamp, - connectionTimeoutInMs, resp.moreData, fetchSize, zoneId, + timeoutInMs, resp.moreData, fetchSize, zoneId, timeFactor, resp.columnIndex2TsBlockColumnIndexList)); }