We have database DATE fields defined as "datetimenotz" - however when during workflow we are using functions like max() then result is converted to "datetime"
Later during steps like intersection we are getting messages about datatypes incompatibility.