-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Portable with OBJECT format on SQL when factory is missing #18891
Conversation
hazelcast-sql/src/test/java/com/hazelcast/sql/PortableQueryTest.java
Outdated
Show resolved
Hide resolved
hazelcast-sql/src/test/java/com/hazelcast/sql/PortableQueryTest.java
Outdated
Show resolved
Hide resolved
When the factory config is missing on the server but server is configured in memory format as Data, we can store Portable's as PortableGenericRecord and still query them without needing to convert them to Object/Data. This pr adds related test to old query. Also updates new query system to allow that usage and adds a related test.
a495a88
to
f47d01c
Compare
|
||
SqlResult rows = client.getSql().execute("SELECT * FROM test WHERE i >= 45"); | ||
AtomicInteger integer = new AtomicInteger(0); | ||
rows.iterator().forEachRemaining(sqlRow -> integer.incrementAndGet()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be simplified with Iterators.size()
.
|
||
Iterator<SqlRow> iterator = rows.iterator(); | ||
SqlRow row = iterator.next(); | ||
assertFalse(iterator.hasNext()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be simplified with Iteratros.getOnlyElement()
.
I would wait for @viliam-durina's review as well. |
@gierlachg @viliam-durina Thanks for the reviews. I will not backport this to older maintenance branches since the feature was Beta, if that is ok ? |
The job Click to expand the log file-------------------------- -------TEST FAILURE------- -------------------------- [INFO] Results: [INFO] [ERROR] Errors: [ERROR] ClientExecutorSplitBrainProtectionReadTest.setUp:44->AbstractSplitBrainProtectionTest.initTestEnvironment:105->AbstractSplitBrainProtectionTest.initCluster:247 ? SplitBrainProtection [INFO] [ERROR] Tests run: 38557, Failures: 0, Errors: 1, Skipped: 1004 [INFO] |
run-lab-run |
Sure it is. |
When the factory config is missing on the server but
the map is configured with in-memory format Object, we can store
Portables as PortableGenericRecord and still query them
without needing to convert them to Object/Data.
This PR adds related test to old query engine.
Also updates new query system to allow that usage and adds
a related test.
Checklist:
Team:
,Type:
,Source:
,Module:
) and Milestone setAdd to Release Notes
label if changes should be mentioned in release notes orNot Release Notes content
if changes are not relevant for release notes@Nonnull/@Nullable
annotations@since
tags in Javadoc