This is an automated email from the ASF dual-hosted git repository.
apkhmv pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 45ab580e4e IGNITE-19985 Allow single empty line at the end of the SQL
test script (#2320)
45ab580e4e is described below
commit 45ab580e4ecd6d6e78599b06cd44c29eeb4c565d
Author: Vadim Pakhnushev <[email protected]>
AuthorDate: Fri Jul 14 15:21:22 2023 +0300
IGNITE-19985 Allow single empty line at the end of the SQL test script
(#2320)
---
.../java/org/apache/ignite/internal/sqllogic/Query.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/modules/runner/src/integrationTest/java/org/apache/ignite/internal/sqllogic/Query.java
b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/sqllogic/Query.java
index 284d204aa0..a795c7ef38 100644
---
a/modules/runner/src/integrationTest/java/org/apache/ignite/internal/sqllogic/Query.java
+++
b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/sqllogic/Query.java
@@ -185,9 +185,9 @@ final class Query extends Command {
// Read expected results
String s = script.nextLineWithoutTrim();
- Matcher m = HASHING_PTRN.matcher(s);
+ Matcher m = Strings.isNullOrEmpty(s) ? null : HASHING_PTRN.matcher(s);
- if (m.matches()) {
+ if (m != null && m.matches()) {
// Expected results are hashing
expectedRows = Integer.parseInt(m.group(1));
expectedHash = m.group(2);