Make single table metrics that require metadata also accept a table name - #905
Make single table metrics that require metadata also accept a table name#905fealho wants to merge 3 commits into
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #905 +/- ##
==========================================
+ Coverage 95.63% 95.65% +0.01%
==========================================
Files 122 122
Lines 5227 5267 +40
==========================================
+ Hits 4999 5038 +39
- Misses 228 229 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| return metadata, table_name | ||
|
|
||
| tables = metadata['tables'] | ||
| _validate_metadata_dict(tables) |
There was a problem hiding this comment.
wasn't this already validated since _validate_metadata_dict(metadata) passes at this point?
There was a problem hiding this comment.
_validate_metadata_dict(metadata) just confirms metadata a dict, but tables could be a list.
This case still needs to be checked: metadata = {'tables': []}
| if not table_names: | ||
| raise ValueError('Metadata does not contain any tables.') |
There was a problem hiding this comment.
would _validate_metadata_dict pass if there are no tables? If so, can you add that to the unit tests?
21835ca to
82480f2
Compare
82480f2 to
d80808c
Compare
CU-86bb1gwt1, Resolve #891