Skip to content

Introducing "strict_response_validation" in loader - #245

Merged
gsaluja9 merged 8 commits into
developfrom
bug/explicit_blob
Jun 22, 2023
Merged

gsaluja9 merged 8 commits into
developfrom
bug/explicit_blob

Conversation

@gsaluja9

@gsaluja9 gsaluja9 commented Jun 19, 2023 •

Copy link
Copy Markdown
Contributor
  1. This flag ensures that a failure in response handler terminates ingestion, and any behavior changes in aperturedb or python lib will be automatically caught.
  2. There is a specific override for ConnectionDataCSV, to ensure we set blobs = false for known objects like image video and blobs.

This ensures that a failure in response handler terminates ingestion.
This is be able to test that known objects with blobs do not get them

It is a specefic override for Connection data csv, and any behavior changes in aperturedb or python lib will be automatically caught.
@gsaluja9
gsaluja9 force-pushed the bug/explicit_blob branch from 8485498 to 6a9edc1 Compare June 19, 2023 20:47
@gsaluja9
gsaluja9 requested review from drewaogle and luisremis June 19, 2023 22:59
Comment thread test/conftest.py Outdated
use_dask = request.param
data = file_data_pair[in_csv_file](in_csv_file, use_dask=use_dask)

setattr(data, "response_handler", check_reposnse_regressions)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
setattr(data, "response_handler", check_reposnse_regressions)
setattr(data, "response_handler", check_response_regressions)

@gsaluja9
gsaluja9 requested a review from drewaogle June 20, 2023 14:57
Comment thread aperturedb/CSVParser.py Resolved
Comment thread aperturedb/ParallelQuery.py Resolved
drewaogle
drewaogle previously approved these changes Jun 20, 2023

@drewaogle drewaogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

Comment thread aperturedb/CSVParser.py

Typically, the response_handler is application specific, and loading does not break
on errors in response_handlers, so the default behaviour is to log the error and continue.
If you want to break on errors, set strict_response_validation to True.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

<3 thanks this is really useful.

Comment thread aperturedb/ConnectionDataCSV.py Resolved
luisremis
luisremis previously approved these changes Jun 20, 2023

@luisremis luisremis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks!

@gsaluja9
gsaluja9 dismissed stale reviews from luisremis and drewaogle via 3f0e270 June 22, 2023 15:52

@drewaogle drewaogle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, the testing pin seems like a good solution

@gsaluja9
gsaluja9 merged commit 6c23d62 into develop Jun 22, 2023
@gsaluja9
gsaluja9 deleted the bug/explicit_blob branch June 22, 2023 18:05
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.

4 participants