Package org.apache.drill.common.logical.data

Examples of org.apache.drill.common.logical.data.Union


    case 1:
      ScanROP scanner = new ScanROP(scan, readEntries.iterator().next(), engine);
      scanner.init(registry, builder);
      return;
    default:
      Union logOp = new Union(null, false);

      ROP parentUnion = new UnionROP(logOp);
      ScanROP[] scanners = new ScanROP[readEntries.size()];
      int i = 0;
      for (ReadEntry e : readEntries) {
View Full Code Here


            "_MAP={product_category=Specialty, product_class_id=1, product_department=Produce, product_family=Food, product_subcategory=Nuts}");
  }

  @Test
  public void testUnionAll() throws Exception {
    Union union = JdbcAssert.withModel(MODEL, "HR").sql("select deptId from dept\n" + "union all\n" + "select deptId from emp")
        .returnsUnordered("DEPTID=31", "DEPTID=33", "DEPTID=34", "DEPTID=35", "DEPTID=null")
        .planContains(Union.class);
    Assert.assertFalse(union.isDistinct());
  }
View Full Code Here

    Assert.assertFalse(union.isDistinct());
  }

  @Test
  public void testUnion() throws Exception {
    Union union = JdbcAssert.withModel(MODEL, "HR").sql("select deptId from dept\n" + "union\n" + "select deptId from emp")
        .returnsUnordered("DEPTID=31", "DEPTID=33", "DEPTID=34", "DEPTID=35", "DEPTID=null")
        .planContains(Union.class);
    Assert.assertTrue(union.isDistinct());
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.common.logical.data.Union

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.