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

[BUG][Kernel]Check if the logic for parsing json works correctly #4139

Open
2 of 8 tasks
huan233usc opened this issue Feb 10, 2025 · 0 comments
Open
2 of 8 tasks

[BUG][Kernel]Check if the logic for parsing json works correctly #4139

huan233usc opened this issue Feb 10, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@huan233usc
Copy link
Collaborator

Bug

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Describe the problem

Steps to reproduce

I observe the following error
Failed to parse JSON string: {"numRecords":1,"minValues":{"id1":"id1"},"maxValues":{"id1":"id1"},"nullCount":{"id1":0}}

at first glance, the depending library may not working with it

/**
* Parses the given JSON string into a map of key-value pairs.
*
* <p>The JSON string should be in the format:
*
* <pre>{@code {"key1": "value1", "key2": "value2", ...}}</pre>
*
* where both keys and values are strings.
*
* @param jsonString The JSON string to parse
* @return A map containing the key-value pairs extracted from the JSON string
*/
public static Map<String, String> parseJSONKeyValueMap(String jsonString) {

I'll need a further look

Observed results

Expected results

Further details

Environment information

  • Delta Lake version:
  • Spark version:
  • Scala version:

Willingness to contribute

The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?

  • Yes. I can contribute a fix for this bug independently.
  • Yes. I would be willing to contribute a fix for this bug with guidance from the Delta Lake community.
  • No. I cannot contribute a bug fix at this time.
@huan233usc huan233usc added the bug Something isn't working label Feb 10, 2025
@huan233usc huan233usc self-assigned this Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant