This is an automated email from the ASF dual-hosted git repository.

twalthr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git

commit 66aa01866bc58536fa1a817968196d7867a08be0
Author: Ingo Bürk <[email protected]>
AuthorDate: Thu Jun 10 13:29:57 2021 +0200

    [hotfix][docs] Allow formatting in SQL functions docs
---
 docs/data/sql_functions.yml                | 12 ++++++++----
 docs/layouts/shortcodes/sql_functions.html |  4 ++--
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/docs/data/sql_functions.yml b/docs/data/sql_functions.yml
index b7f040d..581d312 100644
--- a/docs/data/sql_functions.yml
+++ b/docs/data/sql_functions.yml
@@ -487,12 +487,16 @@ temporal:
     description: "Converts date time string string1 with format string2 (by 
default: 'yyyy-MM-dd HH:mm:ss') under the session time zone (specified by 
TableConfig) to a timestamp."
   - sql: CURRENT_WATERMARK(rowtime)
     description: |
-      Returns the current watermark for the given rowtime attribute, or NULL 
if no common watermark of all upstream operations is available at the current 
operation in the pipeline.
-      The return type of the function is inferred to match that of the 
provided rowtime attribute, but with an adjusted precision of 3. For example, 
if the rowtime attribute is TIMESTAMP_LTZ(9), the function will return 
TIMESTAMP_LTZ(3).
+      Returns the current watermark for the given rowtime attribute, or `NULL` 
if no common watermark of all upstream operations is available at the current 
operation in the pipeline.
+      The return type of the function is inferred to match that of the 
provided rowtime attribute, but with an adjusted precision of 3. For example, 
if the rowtime attribute is `TIMESTAMP_LTZ(9)`, the function will return 
`TIMESTAMP_LTZ(3)`.
 
-      Note that this function can return NULL, and you may have to consider 
this case. For example, if you want to filter out late data you can use:
+      Note that this function can return `NULL`, and you may have to consider 
this case. For example, if you want to filter out late data you can use:
 
-      WHERE CURRENT_WATERMARK(ts) IS NULL OR ts > CURRENT_WATERMARK(ts)
+      ```
+      WHERE
+        CURRENT_WATERMARK(ts) IS NULL
+        OR ts > CURRENT_WATERMARK(ts)
+      ```
 
 conditional:
   - sql: |
diff --git a/docs/layouts/shortcodes/sql_functions.html 
b/docs/layouts/shortcodes/sql_functions.html
index 45c40e9..ec8667e 100644
--- a/docs/layouts/shortcodes/sql_functions.html
+++ b/docs/layouts/shortcodes/sql_functions.html
@@ -41,9 +41,9 @@ under the License.
                     {{ .table | default "N/A" }}
                 </td>
                 <td>
-                    {{ .description }}
+                    {{ .description | $.Page.RenderString }}
                 </td>
             </tr>
         {{ end }}
   </tbody>
-</table>
\ No newline at end of file
+</table>

Reply via email to