Skip to content

typeof(varchar): Velox needs to output the length of the varchar as Presto does #12804

Open
@peterenescu

Description

@peterenescu

Description

When outputting the type of a string, Velox omits the length of the string, while Presto doesn't. We should follow Presto's model and output the length of the string too for feature parity. The fix is indeed trivial but will cause the fuzzer to fail.

Error Reproduction

Presto:

presto> SELECT typeof(c0) from (values ('four')) t(c0);
   _col0    
------------
 varchar(4) 
(1 row)

Velox:

presto:di> SELECT typeof(c0) from (values ('four')) t(c0);
  _col0               
---------
 varchar 
(1 row)

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions