Skip to content

Conversation

ArtDu
Copy link
Contributor

@ArtDu ArtDu commented Mar 22, 2023

It's needed when we want to take maps in the array. Springdata can map map structures. Using AUTO converter we can't map a simple array without tuples to the array and pass conversion control to the next layer.

I haven't forgotten about:

  • Tests
  • Changelog
  • Documentation
  • Commit messages comply with the guideline
  • Cleanup the code for review. See checklist

Related issues:
Needed for tarantool/cartridge-springdata#123

@ArtDu ArtDu requested a review from akudiyar March 22, 2023 12:30
@ArtDu ArtDu marked this pull request as ready for review March 22, 2023 12:30
@ArtDu ArtDu self-assigned this Mar 22, 2023
Copy link
Collaborator

@akudiyar akudiyar left a comment

Choose a reason for hiding this comment

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

TarantoolResult is only about tuples. It's a special container class and it is necessary to distinct an array of arrays as tuples from an array of arrays that are not tuples or an array of any other objects (e.g. maps).
Would you mind explaining a bit more how this change will solve the original problem?

Co-authored-by: Alexey Kuzin <[email protected]>
@ArtDu ArtDu requested a review from akudiyar March 28, 2023 08:26
@akudiyar akudiyar added this pull request to the merge queue Mar 29, 2023
Merged via the queue into master with commit ba6e8b2 Mar 29, 2023
@akudiyar akudiyar deleted the can_convert_value branch March 29, 2023 21:52
@ArtDu ArtDu added the 0.5sp Weight 0.5 SP label Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.5sp Weight 0.5 SP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants