Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

literal handling #55

Open
2 of 5 tasks
tsatke opened this issue Sep 22, 2020 · 0 comments
Open
2 of 5 tasks

literal handling #55

tsatke opened this issue Sep 22, 2020 · 0 comments
Labels
Milestone

Comments

@tsatke
Copy link
Contributor

tsatke commented Sep 22, 2020

We must differentiate between a constant literal and a column reference in a projection.

The following changes should be implemented.
There is a difference between

  1. SELECT name
  2. SELECT "name"
  3. SELECT 'name'
  • For 1, name is a column reference, and must be resolved to a column of the input of the projection. If no such column exists, an error is returned.
  • For 2, "name" is a constant literal or column reference, meaning that if there exists a column name in the input of the projection, it is resolved to that column. If not, it is interpreted as a constant literal.
  • For 3, 'name' is a constant literal, which in this case is of type String.

TODO:

@tsatke tsatke added this to the v0.0.1 milestone Sep 22, 2020
@tsatke tsatke changed the title compiler: literal handling literal handling Sep 22, 2020
@tsatke tsatke added the epic label Sep 22, 2020
tsatke added a commit that referenced this issue Oct 28, 2020
tsatke added a commit that referenced this issue Oct 30, 2020
Mainly fix some warnings. Also skipped a not working test and created a follow-up ticket.
tsatke added a commit that referenced this issue Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant