Skip to content

More informative errors #84

@cpsievert

Description

@cpsievert

Not sure how easy/feasible this is, but it would be great if we could probably more feedback if parsing fails.

ggsql parse "SELECT sex, class, COUNT(*) AS total, SUM(survived) AS num_survived FROM titanic WHERE sex IS NOT NULL AND class IS NOT NULL GROUP BY sex, class VISUALISE class AS x, sex AS y, num_survived/total AS fill, total AS size DRAW rect LABEL title => 'Mosaic Plot: % Survived by Sex and Class', x => 'Class', y => 'Sex', fill => 'Survival Rate', size => 'Group Size'"
Parse error: Parse error: Parse tree contains errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions