You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "sunjincheng (JIRA)" <ji...@apache.org> on 2017/06/12 08:58:00 UTC
[jira] [Updated] (FLINK-6892) Add LPAD supported in SQL
[ https://issues.apache.org/jira/browse/FLINK-6892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sunjincheng updated FLINK-6892:
-------------------------------
Description:
LPAD(str,len,padstr) Returns the string str, left-padded with the string padstr to a length of len characters. If str is longer than len, the return value is shortened to len characters.
* Syntax:
LPAD(str,len,padstr)
* Arguments
**str: -
**len: -
**padstr: -
* Return Types
String
* Example:
LPAD('hi',4,'??') -> '??hi'
LPAD('hi',1,'??') -> 'h'
* See more:
** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_lpad]
was:
LPAD(str,len,padstr) Returns the string str, left-padded with the string padstr to a length of len characters. If str is longer than len, the return value is shortened to len characters.
* Syntax:
LPAD(str,len,padstr)
* Arguments
**str: -
**len: -
**padstr: -
* Return Types
String
* Example:
LPAD('hi',4,'??') -> '??hi'
LPAD('hi',1,'??') -> 'h'
* See more:
** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/mathematical-functions.html#function_lpad]
> Add LPAD supported in SQL
> -------------------------
>
> Key: FLINK-6892
> URL: https://issues.apache.org/jira/browse/FLINK-6892
> Project: Flink
> Issue Type: Sub-task
> Components: Table API & SQL
> Affects Versions: 1.4.0
> Reporter: sunjincheng
>
> LPAD(str,len,padstr) Returns the string str, left-padded with the string padstr to a length of len characters. If str is longer than len, the return value is shortened to len characters.
> * Syntax:
> LPAD(str,len,padstr)
> * Arguments
> **str: -
> **len: -
> **padstr: -
> * Return Types
> String
> * Example:
> LPAD('hi',4,'??') -> '??hi'
> LPAD('hi',1,'??') -> 'h'
> * See more:
> ** [MySQL| https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_lpad]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)