Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with .malloysql extension do not allow tagged sections #461

Open
asitemade4u opened this issue May 12, 2024 · 0 comments
Open

Files with .malloysql extension do not allow tagged sections #461

asitemade4u opened this issue May 12, 2024 · 0 comments

Comments

@asitemade4u
Copy link

asitemade4u commented May 12, 2024

What happens?

I want to save the result of a Malloy view into a Postgres 13/Postgis database.
As per the documentation:

  1. I created a .malloysql document
  2. I began the document with >>>malloy to define a Malloy code block
  3. I also defined below a >>>sql code block.

However, Malloy immediately complains about the first block opener:

mismatched input '>' expecting {<EOF>, AGGREGATE, CALCULATE, DIMENSION, GROUP_BY, JOIN_CROSS, JOIN_ONE, JOIN_MANY, MEASURE, NEST, PROJECT, QUERY, RUN, SELECT, SOURCE, VIEW, ALL, AVG, CAST, COUNT, DAY, EXCLUDE, FALSE, HOUR, IMPORT, IS, MAX, MIN, MINUTE, MONTH, NOT, NOW, NULL, PICK, QUARTER, SECOND, SOURCE_KW, SUM, TABLE, TRUE, WEEK, YEAR, HACKY_REGEX, SQ_STRING, DQ_STRING, BQ_STRING, DOC_ANNOTATION, ANNOTATION, '(', '{', '-', ';', LITERAL_TIMESTAMP, LITERAL_HOUR, LITERAL_DAY, LITERAL_QUARTER, LITERAL_MONTH, LITERAL_WEEK, LITERAL_YEAR, IDENTIFIER, NUMERIC_LITERAL, INTEGER_LITERAL, '"""'}
  | >>>malloy

What am I doing wrong?
S.

To Reproduce

  1. In VS Code, create a tst.malloysql document
  2. Open a Malloy code block by >>>malloy
  3. Immediately, Malloy throws an error.

OS:

Ubuntu 20.04

Malloy Client:

self-hosted CodeServer bare metal on Ubuntu 20.04

Malloy Client Version:

VS Code Extension v0.3.1714196298 (pre-release)

Database Connection:

Postgres 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant