Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2271

count(distinct ) against SystemTablePlugin will hit plan serialization/deserialization issue when executed in distributed mode.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      The following query run fine in single node.

      select count(distinct name) as cnt from `sys`.`options`;
      

      However, if change the slice_target =1 and make it run in distributed mode, it hit error :

      alter session set `planner.slice_target` = 1;
      +------------+------------+
      |     ok     |  summary   |
      +------------+------------+
      | true       | planner.slice_target updated. |
      +------------+------------+
      
      select count(distinct name) as cnt from `sys`.`options`;
      Query failed: RemoteRpcException: Failure while trying to start remote fragment, No suitable constructor found for type [simple type, class org.apache.drill.exec.store.sys.SystemTablePlugin]: can not instantiate from JSON object (need to add/enable type information?)
      

      Seems the serialization/deserialization of the plan for SystemTablePlugin does not work correctly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jni Jinfeng Ni
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: