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

Refactor the Filter operator of Arrow ArrowAdapter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.38.0
    • 1.39.0
    • arrow-adapter
    • None

    Description

      Recently, I tried to complete https://issues.apache.org/jira/browse/CALCITE-6293
      I found a problem. When building the Filter operator structure, we did not effectively fill the List<TreeNode> conditionNodes according to operators such as and and or, so our current Filter operator structure can only support the and operator
      Currently, I have a way to support simple or operators, but I cannot support complex nested and+or and other operator joint queries, such as

      String sql = "select \"intField\", \"stringField\"\n"
      + "from arrowdata\n"
      + "where (\"intField\" > 1 and \"stringField\" = '2') or \"intField\" = 0";
      

      I plan to add operator information to List<TreeNode> conditionNodes so that we can finally assemble a suitable Filter structure

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: