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 
          test("create table %s partition by (col_int) as select * from 
dfs.`%s`", tableName, dataFile);
          // 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 or file a JIRA ticket
with INFRA.

Reply via email to