Skip to content

fix: replace crashing graphar import with raw yaml parser - #11

Merged
adsharma merged 7 commits into
Ladybug-Memory:mainfrom
rahul21-7:fix-graphar-import
Aug 13, 2026
Merged

fix: replace crashing graphar import with raw yaml parser#11
adsharma merged 7 commits into
Ladybug-Memory:mainfrom
rahul21-7:fix-graphar-import

Conversation

@rahul21-7

Copy link
Copy Markdown
Contributor

Relates to LadybugDB/ladybug#17

This replaces the crashing graphar C++ library import with a pure-Python raw YAML adapter class (YamlGraphInfo).

This bypasses the current PyArrow manylinux linking crash and unblocks the script so the DuckDB CSR conversion and Cypher generation can be used today, while we wait on the longer-term zero-copy optimizations.

Comment thread icebug_format/graphar.py Outdated
@adsharma

Copy link
Copy Markdown
Collaborator

I no longer see YamlGraphInfo in the PR. Was that intentional?

@rahul21-7

rahul21-7 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

I thought you wanted me to just do a lazy import, should I make it use the raw parsing if there is an exception instead? (should I use the raw parsing as fallback)

Edit: I'm commiting with the fallback

Comment thread icebug_format/graphar.py Outdated
@rahul21-7

Copy link
Copy Markdown
Contributor Author

I've gone ahead and added a unit test, lmk if you want me to change/add anything

@adsharma
adsharma force-pushed the fix-graphar-import branch from a52d70e to 60b9c76 Compare August 13, 2026 20:25
@adsharma
adsharma force-pushed the fix-graphar-import branch from 60b9c76 to 14d3717 Compare August 13, 2026 20:27
@adsharma
adsharma merged commit 34eeb4c into Ladybug-Memory:main Aug 13, 2026
1 check passed
@adsharma

Copy link
Copy Markdown
Collaborator

Perhaps strengthen the test by adding a simple graphar example and verifying the data matches?
Thank you for the contribution!

@rahul21-7

Copy link
Copy Markdown
Contributor Author

okay, I'll do it

@rahul21-7
rahul21-7 deleted the fix-graphar-import branch August 18, 2026 18:17
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.

2 participants