Skip to content

[SQL] Compiler error composing views selecting different attributes with the same WHERE clause #2018

@cdouglas

Description

@cdouglas
error: Compiler error: Expected function to accept
&Tup14<s(16,false)?, s(2,true)?, i32?, s(20,false)?, s(20,false)?, s(20,false)?, s(2,true)?, s(9,true)?, s(16,true)?, s(2,true)?, decimal?, decimal?, decimal?, Timestamp?> as argument 0 but it expects
&Tup2<i32?, s(16,false)?>

To Reproduce
sql-to-dbsp -i tpcc.sql (see attached)
tpcc-where.sql.txt

The compiler only fails with the incremental flag set. Removing the first query (cust_enum) also compiles without errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions