marquez icon indicating copy to clipboard operation
marquez copied to clipboard

feat: include `outputFacets` and `inputFacets` in Dataset API responses

Open psaikaushik opened this issue 7 months ago • 1 comments

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.findDatasetByName
  • DatasetDao.findAll
  • DatasetVersionDao.findByUuid
  • DatasetVersionDao.findAll

Checklist

  • [x] Minimal change (4 SQL query updates)
  • [x] No schema changes
  • [x] DCO sign-off included

psaikaushik avatar Apr 15 '26 05:04 psaikaushik

@wslulciuc , @davidjgoss : Can you please take a look and let me know. thanks!

psaikaushik avatar Apr 15 '26 05:04 psaikaushik