malloy-py icon indicating copy to clipboard operation
malloy-py copied to clipboard

Wrong query results using Jupyter

Open wwasilak opened this issue 1 year ago • 1 comments

What happens?

In the Collab Notebook, below query returns wrong values.

Link to notebook (official one, from Malloy Docs): https://colab.research.google.com/drive/1eo1fe3878DfUvo1RcyhFUKcFhjdaSlzp?usp=sharing

Query:

%%malloy_query flights run: flights -> { aggregate: max_date is max(dep_time::date) min_date is min(dep_time::date)

}

Generated sql doesn't contain any errors.

Image

To Reproduce

Use notebook from documentation and check query from issue description.

OS:

Google Colab

Malloy Client:

Jupyter Notebooks

Malloy Client Version:

N/A

Database Connection:

DuckDB

wwasilak avatar Mar 14 '25 15:03 wwasilak

Looks like this is an issue with how renderer is handling timestamps. Since this is using an out of date version of renderer probably first steps needs to be updating Malloy versions.

gmaden avatar Mar 14 '25 19:03 gmaden