[ 
https://issues.apache.org/jira/browse/FLINK-24750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17438049#comment-17438049
 ] 

Sergey Nuyanzin edited comment on FLINK-24750 at 11/3/21, 1:14 PM:
-------------------------------------------------------------------

Yes, I noticed that example for map however 
 there are lots of normal examples with correct quotes in _sql_functions.yml_ 
and weird rendering at site like
||In sql_functions.yml||Renders to||
|{noformat}
REGEXP_EXTRACT('foothebar', 'foo(.*?)(bar)', 2)" returns "bar".
{noformat}|REGEXP_EXTRACT(‘foothebar’, ‘foo(.*?)(bar)’, 2)" returns “bar”.|
|{noformat}
parse_url('http://facebook.com/path1/p.php?k1=v1&k2=v2#Ref1', 'QUERY', 'k1') 
returns 'v1'.
{noformat}|parse_url(‘[http://facebook.com/path1/p.php?k1=v1&k2=v2#Ref1]', 
‘QUERY’, ‘k1’) returns ‘v1’.|


was (Author: sergey nuyanzin):
Yes, I noticed that example for map however 
there are lots of normal examples with correct quotes _sql_functions.yml_ and 
weird rendering at site like 

||In sql_functions.yml||Renders to||
|{noformat}
REGEXP_EXTRACT('foothebar', 'foo(.*?)(bar)', 2)" returns "bar".
{noformat}|REGEXP_EXTRACT(‘foothebar’, ‘foo(.*?)(bar)’, 2)" returns “bar”.|
|{noformat}
parse_url('http://facebook.com/path1/p.php?k1=v1&k2=v2#Ref1', 'QUERY', 'k1') 
returns 'v1'.
{noformat}| parse_url(‘http://facebook.com/path1/p.php?k1=v1&k2=v2#Ref1', 
‘QUERY’, ‘k1’) returns ‘v1’.|



> Single quotes converted to left/right single quotes during docs generation
> --------------------------------------------------------------------------
>
>                 Key: FLINK-24750
>                 URL: https://issues.apache.org/jira/browse/FLINK-24750
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation
>    Affects Versions: 1.14.0
>            Reporter: Sergey Nuyanzin
>            Priority: Major
>
> The problem is that there are lots of system functions at [1] with examples. 
> Before 1.14.0 (probably before generation of docs with Hugo) it was possible 
> to copy paste this examples to Flink SQL Client, submit a query and to see 
> the result.
> Now it does not work as right and left single quote violate SQL syntax
> some examples(not all) of impacted functions
> {{EXTRACT}}, {{PARSE_URL}}, {{YEAR}}, {{MONTH}}
> probably the issue is not only with this page.
> There is no such problem for version specific pages for versions 1.13 and 
> lower.
> The problem is for 1.14 and master
> [1] 
> https://ci.apache.org/projects/flink/flink-docs-master/docs/dev/table/functions/systemfunctions/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to