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'>.

To reproduce it, it's enough to run this query on an empty beancount file.
I tried to understand why it's happening but I had no luck. Am I doing something wrong or is it an unintended behavior?

--
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/a0a53457-6b4c-3f56-6c6e-f72824928f61%40gmail.com.

Reply via email to