wozhenbang2004 opened a new pull request, #13914:
URL: https://github.com/apache/ignite/pull/13914

   When the Java thin client requests a sorted index on `name ASC, age DESC`, 
the server builds `name DESC, age ASC`. Reading the configuration with the same 
client hides the reversal. Map Java’s ascending flag to the protocol’s 
descending flag when writing and reading index fields.
   
   The regression test compares the server- and client-created indexes in 
`SYS.INDEXES` and reads the server-created cache configuration through the 
client. Existing indexes keep their order. Applications that previously 
reversed the flags as a workaround should pass the intended directions when 
creating caches with the updated client.
   
   [IGNITE-29380](https://issues.apache.org/jira/browse/IGNITE-29380)
   
   Fixes #13905.
   
   ### Testing
   
   The new regression failed on the unpatched checkout and passed after the 
change on JDK 17. All 29 tests in `CacheConfigurationQueryEntityTest`, 
`ClientCacheConfigurationTest`, and `IgniteBinaryQueryTest` passed.
   
   ### The Contribution Checklist
   - [x] 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.
   - [x] The pull request body describes changes that have been made.
   The description explains _WHAT_ and _WHY_ was made instead of _HOW_.
   - [x] 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](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute#HowtoContribute-ReviewProcessandMaintainers)).
   - [ ] 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](https://tcbot2.sbt-ignite-dev.ru/prs.html) or [TC.Bot - Instance 
2](https://mtcga.gridgain.com/prs.html)).
   
   ### Notes
   - [How to 
Contribute](https://cwiki.apache.org/confluence/display/IGNITE/How+to+Contribute)
   - [Coding abbreviation 
rules](https://cwiki.apache.org/confluence/display/IGNITE/Abbreviation+Rules)
   - [Coding 
Guidelines](https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines)
   - [Apache Ignite Teamcity 
Bot](https://cwiki.apache.org/confluence/display/IGNITE/Apache+Ignite+Teamcity+Bot)
   
   If you need any help, please email [email protected] or ask any advice 
on https://the-asf.slack.com _#ignite_ channel.
   
   ### AI assistance
   
   - [ ] I did not use AI assistance for this contribution
   - [x] I used AI assistance for this contribution
   
   I used OpenAI Codex (GPT-6) to help prepare and review the patch, develop 
the regression test, verify the fix, and draft the PR description.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to