A simple query like

    SELECT date as d, last(balance)

works just fine. I would expect the following to do the same thing:-

    SELECT DATE(year, month, day) as d, last(balance)

But it errors out with an AttributeError: 'datetime.date' object has no
attribute (get_positions). What am I doing wrong?

For clarity, I'm trying to construct a date in my BQL target as a
workaround to 'simulate' quarterly dates from output of QUARTER. So my full
intention is something like:-

    DATE(SUBST('-Q', '-1-', STR(QUARTER(DATE)))

But this returns the same error as above, because somehow the output of the
DATE target isn't actually a date (seems to be an inventory?)

-- 
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/CAGQ70evojEB%3DF-Z60cXwWSACscmL_YUZX8kk9OJER6LdNgGsgw%40mail.gmail.com.

Reply via email to