You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (JIRA)" <ji...@apache.org> on 2019/07/25 09:06:00 UTC
[jira] [Resolved] (FLINK-13353) Remove 2 args constructor in
REPLACE expression
[ https://issues.apache.org/jira/browse/FLINK-13353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu resolved FLINK-13353.
-----------------------------
Resolution: Fixed
Fix Version/s: 1.9.0
Fixed in 1.10.0: 817da8a87b8d6171666b3cbfa5f2d68965765bb2
Fixed in 1.9.0: 729468b983a8b04ca299de60a25a4880b4481edb
> Remove 2 args constructor in REPLACE expression
> -----------------------------------------------
>
> Key: FLINK-13353
> URL: https://issues.apache.org/jira/browse/FLINK-13353
> Project: Flink
> Issue Type: Bug
> Components: Table SQL / Legacy Planner, Table SQL / Planner
> Affects Versions: 1.9.0, 1.10.0
> Reporter: Louis Xu
> Assignee: Louis Xu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.9.0, 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Replace definition in stringExpression.scala has another constructor with 2 arguments.
> According to source code, the args' meaning are str, begin. And it call other constructor with 3 args adding the 3rd arg which is the length of str.
> But its expectTypes is (String, String, String), but actually is (String, int, int).
> So I think the 2 args defined constructor means search and replacement is "" default, not begin and length of str.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)