• J
    Add type modifiers (typmod) support to ORCA · 1c37d8af
    Jesse Zhang 提交于
    ORCA has historically ignored type modifiers from databases that support
    them, noticeably Postgres and Greenplum. This has led to surprises in a
    few cases:
    
    1. The output description over the wire (for Postgres protocol) will
    lose the type modifier information, which often meant length. This
    surprises code that expects a non-default type modifier, e.g. a JDBC
    driver.
    
    2. The executor in some cases -- notably DML -- expects a precise type
    modifier. Because ORCA always erases the type modifiers and presents a
    default, the executor is forced to find that information elsewhere.
    
    After this commit, ORCA will be aware of type modifiers in table
    columns, scalar identifiers, constants, and length-coercion casts.
    Signed-off-by: NShreedhar Hardikar <shardikar@pivotal.io>
    (cherry picked from commit 2d907526)
    1c37d8af
CTranslatorDXLToScalar.h 9.7 KB