Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6667

Arrow adapter should push down arithmetic operations

    XMLWordPrintableJSON

Details

    Description

      Arrow adapter should push down arithmetic operations

      Here is a simple case:

      select  intField, stringField from arrowdata where floatField - 1 = 12
      

      Its plan can be optimized to

          String plan = "PLAN=ArrowToEnumerableConverter\n"
              + "  ArrowProject(intField=[$0], stringField=[$1])\n"
              + "    ArrowFilter(condition=[=(+($2, 1.0:DECIMAL(2, 1)), 12.0E0)])\n"
              + "      ArrowTableScan(table=[[ARROW, ARROWDATA]], fields=[[0, 1, 2, 3]])\n\n";
      

      Attachments

        Issue Links

          Activity

            People

              caicancai Caican Cai
              caicancai Caican Cai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: