Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12775

Reuse data type aggregation code for hybrid functions and UNION

    XMLWordPrintable

Details

    Description

      Currently we have two versions of data type attribute aggregation code:

      • For hybrid functions, implemented in Type_handler::Item_hybrid_func_fix_attributes()
      • For UNION, implemented in Item_type_holder::join_types()

      Both versions do the same thing, but in some cases UNION is not precise enough.
      See bugs: MDEV-9495, MDEV-9497, MDEV-12594, MDEV-12595, MDEV-12599.

      Under terms of this task we'll make the UNION related code reuse the code implemented in Type_handler::Item_hybrid_func_fix_attributes() and get rid of the second implementation in Item_type_holder::join_types().

      This, among fixing the mentioned bugs, will simplify development of data type plugins, as the implementer will have to do less coding.

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.