marquez
marquez copied to clipboard
feat: include `outputFacets` and `inputFacets` in Dataset API responses
Summary
Updates the DatasetDao and DatasetVersionDao SQL queries to include facets of type 'output' in API responses, in addition to the existing 'dataset', 'unknown', and 'input' types.
Supersedes #3103 (recreated to fix DCO sign-off).
Closes #1746
Problem
Marquez stores outputFacets and inputFacets correctly in the dataset_facets table. However, the read queries filtered with:
(df.type ILIKE 'dataset' OR df.type ILIKE 'unknown' OR df.type ILIKE 'input')
This excluded 'output' type facets (e.g., OutputStatistics) from API responses.
Fix
Added OR df.type ILIKE 'output' to the facet type filter in:
DatasetDao.findDatasetByNameDatasetDao.findAllDatasetVersionDao.findByUuidDatasetVersionDao.findAll
Checklist
- [x] Minimal change (4 SQL query updates)
- [x] No schema changes
- [x] DCO sign-off included
@wslulciuc , @davidjgoss : Can you please take a look and let me know. thanks!