When I try to run a date() function it doesn't work in bean-query.
Instead, I get following error:
beancount> select day(DATE('2019-05-01')) limit 10;
ERROR: Invalid type for argument 0 of Day: found <class
'beancount.core.inventory.Inventory'> expected <class 'datetime.date'>.