You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.
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
SELECT name
SELECT "name"
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.
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
SELECT name
SELECT "name"
SELECT 'name'
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."name"
is a constant literal or column reference, meaning that if there exists a columnname
in the input of the projection, it is resolved to that column. If not, it is interpreted as a constant literal.'name'
is a constant literal, which in this case is of typeString
.TODO:
The text was updated successfully, but these errors were encountered: