Skip to content

S-string table creation case sensitivity #1439

Closed

Description

@mklopets

This should work, but doesn't:

from s"select first_name, id, age from employees order by age asc"

...while this does:

from s"SELECT first_name, id, age from employees order by age asc"
s-strings representing a table must start with `SELECT `

SQL keywords are case-insensitive, so to avoid confusing people, it'd make sense for PRQL to match this behaviour.

Related to me finding this but unrelated to the point of this issue: I was today years old when I realised that the web playground shows certain errors only on hover (and not in the red box at the bottom of the editor)

Activity

  1. added
    good first issue
    on Jan 5, 2023
  2. max-sixty commented on Jan 5, 2023

    @max-sixty
    Member

    Yes, agree.

    This should be a fairly easy fix I think — find where the error is raised, and make the comparison case insensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions