Skip to content

IGNITE-28621 SQL: Add H2 map query details to system view and logs#13091

Open
chesnokoff wants to merge 2 commits intoapache:masterfrom
chesnokoff:ignite-28621-sql-map
Open

IGNITE-28621 SQL: Add H2 map query details to system view and logs#13091
chesnokoff wants to merge 2 commits intoapache:masterfrom
chesnokoff:ignite-28621-sql-map

Conversation

@chesnokoff
Copy link
Copy Markdown
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see tab PR Check at TC.Bot - Instance 1 or TC.Bot - Instance 2)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@chesnokoff chesnokoff force-pushed the ignite-28621-sql-map branch from 849559a to 83b64fc Compare April 30, 2026 12:22
cursor.iterator().next();

for (int i = 0; i < 2; i++) {
int nodeIdx = i;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

effective final variable

Comment on lines -684 to -726
/** Test map query flag in running queries system view. */
@Test
public void testMapQueryRunningQueriesView() throws Exception {
IgniteEx ignite = startGrids(2);

IgniteCache<Integer, String> cache = ignite.createCache(
new CacheConfiguration<Integer, String>(DEFAULT_CACHE_NAME)
.setCacheMode(CacheMode.PARTITIONED)
.setIndexedTypes(Integer.class, String.class)
);

for (int i = 0; i < 10; i++)
cache.put(i, Integer.toString(i));

awaitPartitionMapExchange();

String initiatorId = UUID.randomUUID().toString();

try (FieldsQueryCursor<List<?>> cursor = cache.query(new SqlFieldsQuery("SELECT * FROM String")
.setQueryInitiatorId(initiatorId)
.setPageSize(1))) {
cursor.iterator().next();

for (int i = 0; i < 2; i++) {
int nodeIdx = i;
UUID nodeId = grid(nodeIdx).localNode().id();

assertTrue(waitForCondition(() -> {
SystemView<SqlQueryView> view = grid(nodeIdx).context().systemView().view(SQL_QRY_VIEW);

for (SqlQueryView qry : view) {
if (qry.mapQuery()
&& nodeId.equals(qry.nodeId())
&& ignite.localNode().id().equals(qry.originNodeId())
&& initiatorId.equals(qry.initiatorId()))
return true;
}

return false;
}, 5_000));
}
}
}
Copy link
Copy Markdown
Contributor Author

@chesnokoff chesnokoff May 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initially, created this test to check map queries but now I think the test may be flaky so I decided to rollback it (the test passed for visa)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant