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] Read each object in root Array as an single message. #14607

Open
felpasl opened this issue Dec 5, 2024 · 0 comments
Open

[feature] Read each object in root Array as an single message. #14607

felpasl opened this issue Dec 5, 2024 · 0 comments

Comments

@felpasl
Copy link

felpasl commented Dec 5, 2024

First, I want to express my gratitude for your hard work on the Apache Pinot project. It has been an invaluable tool for our data analytics needs, and we greatly appreciate the continuous improvements and updates.

However, I have encountered some challenges while trying to ingest JSON data that contains arrays. Specifically, I received a MismatchedInputException when attempting to deserialize a value of type java.util.HashMap<java.lang.String,java.lang.Object> from an array value (token JsonToken.START_ARRAY). This issue has made it difficult to work with JSON data containing root arrays effectively.

My kafka message has this payload structure, its an stream log from Apisix Requests kafka-logger:

[{
    "start_time": 1733420042603,
    "route_id": "5d9ece83",
    "request": {
         "method": "GET"
    }
},
{
    "start_time": 1733420042701,
    "route_id": "5d9ece83",
    "request": {
         "method": "GET"
    }
}]

Feature Request: I would like to request the following features or enhancements:

Enhanced Documentation Sample:

  • Detailed examples and guidelines for handling JSON data with root arrays during ingestion.

Feature Enhancement:

  • If not possible Improved support for JSON data containing root arrays.

Best regards.

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

No branches or pull requests

1 participant