Skip to content
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

Feature: PPL - json_set function #3271

Open
wants to merge 46 commits into
base: main
Choose a base branch
from

Conversation

andy-k-improving
Copy link
Contributor

@andy-k-improving andy-k-improving commented Jan 28, 2025

This PR depends on t he json_valid, json_object and json_extract:
#3262, #3242, #3230

Description

To introduce Json function json_set to perform insert || override with provided JsonPath String.

Related Issues

Resolves: #3214
Partially resolves: #3028

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

14yapkc1 and others added 30 commits January 3, 2025 10:54
Signed-off-by: Kenrick Yap <14yapkc1@gmail.com>
Signed-off-by: Kenrick Yap <14yapkc1@gmail.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: kenrickyap <121634635+kenrickyap@users.noreply.github.com>
….java

Co-authored-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: kenrickyap <121634635+kenrickyap@users.noreply.github.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
…nsearch-project-sql into feature/json-valid

Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Kenrick Yap <kenrick.yap@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
Signed-off-by: Andrew Carbonetto <andrew.carbonetto@improving.com>
@YANG-DB
Copy link
Member

YANG-DB commented Jan 28, 2025

Hi @andy-k-improving
is this still in draft mode ? if not can u plz resolve the conflicts ?
thanks

@andy-k-improving
Copy link
Contributor Author

andy-k-improving commented Jan 28, 2025

Hi @andy-k-improving is this still in draft mode ? if not can u plz resolve the conflicts ? thanks

Functionality wide, this is ready.
however my code is based on some other json function as we share some util and Gradle deps.
#3262, #3242, #3230
Hence the conflict can only be fixed after above being merged I believe.

Signed-off-by: Andy Kwok <andy.kwok@improving.com>
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
@andy-k-improving
Copy link
Contributor Author

@normanj-bitquill Fixed above comments, would you mind to have another look?

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.

[FEATURE] Add json_set function to PPL [RFC] Add PPL JSON extended functions support
6 participants