For data ingestion, sub queries are handled the same as normal queries. The only difference is that sub queries will also be executed when running report for the main query.
Invoice generation will group reports for sub-facts (i.e. facts generated by a sub-query) as sub-items for query line items. That means if we have a query foo with a sub-query sub-foo and sub-foo2 and a query bar. When generating an invoice we will get the line items
Sub items will not show up in the total of the main item.
Checklist
[x] Categorize the PR by setting a good title and adding one of the labels:
bug, enhancement, documentation, change, breaking, dependency
as they show up in the changelog
Summary
This PR introduces sub queries
For data ingestion, sub queries are handled the same as normal queries. The only difference is that sub queries will also be executed when running report for the main query.
Invoice generation will group reports for sub-facts (i.e. facts generated by a sub-query) as sub-items for query line items. That means if we have a query
foo
with a sub-querysub-foo
andsub-foo2
and a querybar
. When generating an invoice we will get the line itemsSub items will not show up in the total of the main item.
Checklist
bug
,enhancement
,documentation
,change
,breaking
,dependency
as they show up in the changelog