Remove some errors related to Jinja objects. This will allow more flexible syntax. The main problem driving this change is that we have multiple places that parse the same Jinja syntax, but each has different behavior. This means that if you pass a certain syntax into a where filter, that same syntax won't work in a group by. In order to align the two, we must use the more permissive option, since adding new restrictions would be a breaking change. Changes here:
Allow passing the grain in the name of a time dimension using dunder syntax. This means it can be passed in the name or via a separate parameter, and we will only error if both are passed and they don't match.
Don't error if metric_time is passed into a Dimension(...) object. This error creates inconsistent restrictions, not only between where & group by params, but within this where param. Before this change, it would only error if you passed metric_time into Dimension(...)without a grain. If you include a grain, no error. Instead of raising this error, just allow it and MF will sort it out.
Description
Remove some errors related to Jinja objects. This will allow more flexible syntax. The main problem driving this change is that we have multiple places that parse the same Jinja syntax, but each has different behavior. This means that if you pass a certain syntax into a where filter, that same syntax won't work in a group by. In order to align the two, we must use the more permissive option, since adding new restrictions would be a breaking change. Changes here:
metric_time
is passed into aDimension(...)
object. This error creates inconsistent restrictions, not only between where & group by params, but within this where param. Before this change, it would only error if you passedmetric_time
intoDimension(...)
without a grain. If you include a grain, no error. Instead of raising this error, just allow it and MF will sort it out.Checklist
changie new
to create a changelog entry