Repository navigation
Croissant data enrichment - #595
Merged
Merged
Conversation
gsaluja9
commented
Jun 19, 2025
Contributor
- example of getting a URL ingested as a blob.
- option of flattening a json into connected entities (1 level)
- Has no intermediate conversion into a Dataframe
- Handle gifs. - Handle python encoded json strings.
This kicks in when --flatten-json is specified.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR enhances Croissant dataset ingestion by adding URL metadata, flattening JSON entities one level without converting to DataFrames, and supporting blob/image parsing.
- CLI ingest now passes the source URL to metadata persistence.
MLCroissantmodule: reorganized imports, added logging, improved JSON and HTTP image parsing, updatedpersist_metadata,dict_to_query, and record set handling.- Removed DataFrame normalization in favor of raw sample lists and expanded blob handling for images and generic blobs.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| aperturedb/cli/ingest.py | Updated persist_metadata call to include url. |
| aperturedb/MLCroissant.py | Reorganized imports, added url field, enhanced parsing logic and blob handling, refactored record set to use sample lists. |
Comments suppressed due to low confidence (2)
aperturedb/MLCroissant.py:105
- [nitpick] This comment is misleading: this branch handles HTTP URLs and converts them to images, not lists. Update the comment to reflect the actual logic.
# If it looks like a list, try to parse it as a list
aperturedb/MLCroissant.py:121
- The variable
o_literalseis never used and appears to be a typo. Remove or rename it to avoid confusion.
o_literalse = {}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.