You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Jinchul Kim (JIRA)" <ji...@apache.org> on 2017/11/16 10:28:01 UTC
[jira] [Resolved] (IMPALA-5341) File size filter in planner tests
also filters row-size
[ https://issues.apache.org/jira/browse/IMPALA-5341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jinchul Kim resolved IMPALA-5341.
---------------------------------
Resolution: Fixed
Fix Version/s: Impala 2.11.0
> File size filter in planner tests also filters row-size
> -------------------------------------------------------
>
> Key: IMPALA-5341
> URL: https://issues.apache.org/jira/browse/IMPALA-5341
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 2.5.0, Impala 2.6.0, Impala 2.7.0, Impala 2.8.0
> Reporter: Alexander Behm
> Assignee: Jinchul Kim
> Labels: newbie
> Fix For: Impala 2.11.0
>
>
> In our planner tests we want to ignore minor differences in reported file sizes to avoid flaky tests, see IMPALA-2565. However, the introduced filter also matches "row-size=" which we do not want to filter.
> Relevant code is in TestUtils.java:
> {code}
> static class FileSizeFilter implements ResultFilter {
> private final static String BYTE_FILTER = "[KMGT]?B";
> private final static String NUMBER_FILTER = "\\d+(\\.\\d+)?";
> private final static String FILTER_KEY = "size="; <-- also matches "row-size="
> public boolean matches(String input) { return input.contains(FILTER_KEY); }
> public String transform(String input) {
> return input.replaceAll(FILTER_KEY + NUMBER_FILTER + BYTE_FILTER, FILTER_KEY);
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)