Feedback:

Allow NULL values to bootstrap a column alias

Currently, one can bootstrap an alias with a literal value, one cannot do the same with NULL. Please allow NULL to be used as well since it is a valid option.

For example you can do the following:

Select 'ABC' as ColumnName from system.iota;

BUT cannot do:

Select NULL as ColumnName from system.iota;

This is rather annoying. I had to write a function that returns NULL to overcome this limitation.

3 votes
Vote 0 votes Vote Vote
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service

    You'll receive a confirmation email with a link to create a password (optional).

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    ahinsonahinson shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    completed  ·  jeremym1234jeremym1234 responded  · 

    Closing. See Alex’s reply.

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service

      You'll receive a confirmation email with a link to create a password (optional).

      Signed in as (Sign out)
      Submitting...
      • AlexWongAlexWong commented  ·   ·  Flag as inappropriate

        This is already possible. The problem with your statement is that NULL does not have a type. The following works:

        SELECT Cast( NULL as SQL_VARCHAR(3)) as ColumnName FROM system.iota

      Knowledge Base and Helpdesk