Skip to content

%XVEGA_PLOT and sql statement on new line: <> needs a space after to make it work #36

Open
@jankatins

Description

@jankatins

Currently, putting the select statement on the next line is a bit strange. e.g. neither of the following two cells work:

%XVEGA_PLOT X_FIELD x Y_FIELD y MARK line COLOR purple WIDTH 400 HEIGHT 200 <>
Select *
FROM (VALUES (1,1), (2,2)) t(x,y)
%XVEGA_PLOT X_FIELD x Y_FIELD y MARK line COLOR purple WIDTH 400 HEIGHT 200
Select *
FROM (VALUES (1,1), (2,2)) t(x,y)

Error both times: Error: cannot create std::vector larger than max_size()

Funnily, this works:

%XVEGA_PLOT X_FIELD x Y_FIELD y MARK line COLOR purple WIDTH 400 HEIGHT 200 <> 
Select *
FROM (VALUES (1,1), (2,2)) t(x,y)

-> Difference: a space after <>...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions