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

OPAL-544 #103

Merged
merged 10 commits into from
Jul 1, 2024
Merged

OPAL-544 #103

merged 10 commits into from
Jul 1, 2024

Conversation

AM-USAF
Copy link
Contributor

@AM-USAF AM-USAF commented Jun 24, 2024

The error was happening because we were trying to index an empty df in index_sql/lite - specifically, the 'entry' df in generate_index() was empty because we were calling create_index_from_fs and giving it the path of only a json file with an index basket type so it was returning an empty df.

The hot fix was to just skip track_basket when the df was empty.

I've tried finding a better solution but I am still new to the sql backend and weave - I am open to better ideas!

weave/tests/test_index.py Outdated Show resolved Hide resolved
@AM-USAF AM-USAF requested a review from AB-USAF June 28, 2024 14:24
AB-USAF
AB-USAF previously approved these changes Jun 28, 2024
Copy link
Collaborator

@AB-USAF AB-USAF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 💯

Copy link
Contributor

@MJ-USAF MJ-USAF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely done.

@AM-USAF AM-USAF merged commit e598033 into main Jul 1, 2024
5 checks passed
@AM-USAF AM-USAF deleted the OPAL-544 branch July 1, 2024 14:04
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.

None yet

3 participants