marimo icon indicating copy to clipboard operation
marimo copied to clipboard

Fileformat creates lint errors with sql

Open dmadisetti opened this issue 8 months ago • 1 comments

Describe the bug

Image

Environment

Vim, pyright

Rendering from 0.13.2

Code to reproduce

Maybe a viable solution is:

@app.cell
def _(graphemes):
    emoji_freq = mo.sql(
        f"""
        select
            count(grapheme) as total,
            grapheme
        from
            graphemes
        group by
            grapheme
        order by
            total
        """,
        used_tables=[graphemes]
    )
    return emoji_freq  # regardless

dmadisetti avatar Apr 25 '25 16:04 dmadisetti

NB.

Parameter doesn't match call. For instance, if I imported this cell and called it, there's an expectation of 1 argument.

Ideally, should take the table, and maybe mo.sql defaults to using tables if the runtime is not initialized

dmadisetti avatar Apr 25 '25 22:04 dmadisetti