drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arina-ielchiieva <...@git.apache.org>
Subject [GitHub] drill issue #889: DRILL-5691: enhance scalar sub queries checking for the ca...
Date Tue, 08 Aug 2017 10:26:19 GMT
Github user arina-ielchiieva commented on the issue:

    @weijietong regarding the unit test, I have tried to reproduce the problem and written
the following unit test:
      public void test() throws Exception {
        FileSystem fs = null;
        try {
          fs = FileSystem.get(new Configuration());
          // create table with partition pruning
          test("use dfs_test.tmp");
          String tableName = "table_with_pruning";
          Path dataFile = new Path(TestTools.getWorkingPath(),"src/test/resources/parquet/alltypes_required.parquet");
          test("create table %s partition by (col_int) as select * from dfs.`%s`", tableName,
          // generate metadata
          test("refresh table metadata `%s`", tableName);
          // execute query
          String query = String.format("select count(distinct col_int), count(distinct col_chr)
from `%s` where col_int = 45436", tableName);
        } finally {
          if (fs != null) {
    `AbstractGroupScan.getScanStats` method returns one row but it does not fail. Can you
please take a look?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message