malloydata / malloy-vscode-extension

The Malloy Visual Studio Code extension facilitates building Malloy data models, querying and transforming data, and creating simple visualizations and dashboards
http://www.malloydata.dev
MIT License
13 stars 12 forks source link

Query generated with button for specific record doesn't take proper path to field #478

Open carlineng opened 3 months ago

carlineng commented 3 months ago

From https://github.com/malloydata/malloy/issues/1759

Hi, seems like when using dimension in query and then trying to use button that generates query for choosen row, in the generated query path to the field incorrect/non-existing:

Example:

run: ordersRAW -> { group_by: order_productsRAW.productsRAW.name limit:5 } now for one of the records i am using button to generate query code and this is returned:

run: ordersRAW -> { where: translations.pl_PL.name = 'some_product_name'
} + {select: *} So it substitues 'name' (dimension name) with 'translations.pl_PL.name' (dimension definition) but doesn't copy the path.

Windows 10, VSCode Desktop, Malloy version: v0.3.1719853081 (pre-release)