@ShellMethod(key = {"temp_query", "temp query"}, value = "query against created temp view")
  public String query(
      @ShellOption(value = {"--sql"}, help = "select query to run against view") final String sql) {

    try {
      HoodieCLI.getTempViewProvider().runQuery(sql);
      return QUERY_SUCCESS;
    } catch (HoodieException ex) {
      return QUERY_FAIL;
    }

  }
@Test
  public void testQuery() {
    Object result = shell.evaluate((MockCommandLineInput) () ->
            String.format("temp query --sql 'select * from %s'", tableName));
    assertEquals(TempViewCommand.QUERY_SUCCESS, result.toString());
  }