You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2019/09/27 07:13:00 UTC
[jira] [Resolved] (CALCITE-3099) The description of
SplunkPushDownRule doesn't match expression check in RelOptRule
[ https://issues.apache.org/jira/browse/CALCITE-3099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis resolved CALCITE-3099.
------------------------------------------
Fix Version/s: 1.22.0
Resolution: Fixed
The pattern of RelOptRule has changed in CALCITE-3136 (it is now more permissive) so the problem with the rule description does not appear anymore thus I'm marking this issue as fixed.
Nevertheless thanks for the PR [~Shawn732] and sorry for the long wait.
> The description of SplunkPushDownRule doesn't match expression check in RelOptRule
> ----------------------------------------------------------------------------------
>
> Key: CALCITE-3099
> URL: https://issues.apache.org/jira/browse/CALCITE-3099
> Project: Calcite
> Issue Type: Bug
> Components: splunk
> Affects Versions: 1.19.0
> Reporter: Shawn Chen
> Assignee: Shawn Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.22.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Some SplunkPushDownRule instance has a description that contains spaces, for example:
> The description of _*PROJECT_ON_FILTER*_ is "proj on filter on proj", which doesn't match the expression check in RelOptRule:
> {code:java}
> if (!description.matches("[A-Za-z][-A-Za-z0-9_.():]*")) {
> throw new RuntimeException("Rule description '" + description
> + "' is not valid");
> }
> {code}
> The constructor of SplunkPushDownRule also contains spaces when invoking super():
> {code:java}
> /** Creates a SplunkPushDownRule. */
> protected SplunkPushDownRule(RelOptRuleOperand rule,
> RelBuilderFactory relBuilderFactory, String id) {
> super(rule, relBuilderFactory, "SplunkPushDownRule: " + id);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)