Apache Drill
  1. Apache Drill
  2. DRILL-577

Allow implicit cast to be applied in both directions for certain data types

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.4.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently implicit cast works as per the precedence rules. However based on some functions it might be useful allow the implicit cast to work in the opposite direction as specified by the precedence map.

      For example: As per the precedence rules, we can implicitly cast from VARCHAR ---> BIGINT. However for some functions (eg: substr, concat) it might be useful to implicitly cast from BIGINT ---> VARCHAR.

      1. DRILL-577.patch
        13 kB
        Mehant Baid

        Activity

        Hide
        Jacques Nadeau added a comment -

        added in cd4f281

        Show
        Jacques Nadeau added a comment - added in cd4f281
        Hide
        Mehant Baid added a comment -

        Rebased on latest master

        Show
        Mehant Baid added a comment - Rebased on latest master
        Hide
        Mehant Baid added a comment -

        Updated patch with review comments.
        Rebased on latest master.

        Show
        Mehant Baid added a comment - Updated patch with review comments. Rebased on latest master.
        Hide
        Jacques Nadeau added a comment -

        Mehant is requesting review by Jinfeng before merge.

        Show
        Jacques Nadeau added a comment - Mehant is requesting review by Jinfeng before merge.

          People

          • Assignee:
            Mehant Baid
            Reporter:
            Mehant Baid
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development