You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by di...@apache.org on 2020/08/27 01:49:29 UTC

[flink] branch release-1.10 updated: [FLINK-18287][docs][python] Correct the documentation of Python Table API in SQL pages

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

dianfu pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.10 by this push:
     new ffcef94  [FLINK-18287][docs][python] Correct the documentation of Python Table API in SQL pages
ffcef94 is described below

commit ffcef94d9cfc152f9400d70c5ded736c6b839240
Author: finchen <fi...@tencent.com>
AuthorDate: Thu Aug 27 00:03:03 2020 +0800

    [FLINK-18287][docs][python] Correct the documentation of Python Table API in SQL pages
    
    This closes #13253.
---
 docs/dev/table/sql/create.md    | 4 ++--
 docs/dev/table/sql/create.zh.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/docs/dev/table/sql/create.md b/docs/dev/table/sql/create.md
index 1b0174a..fc196ac 100644
--- a/docs/dev/table/sql/create.md
+++ b/docs/dev/table/sql/create.md
@@ -89,9 +89,9 @@ table_env = TableEnvironment.create(settings)
 
 # SQL query with a registered table
 # register a table named "Orders"
-tableEnv.sqlUpdate("CREATE TABLE Orders (`user` BIGINT, product STRING, amount INT) WITH (...)");
+tableEnv.sql_update("CREATE TABLE Orders (`user` BIGINT, product STRING, amount INT) WITH (...)");
 # run a SQL query on the Table and retrieve the result as a new Table
-result = tableEnv.sqlQuery(
+result = tableEnv.sql_query(
   "SELECT product, amount FROM Orders WHERE product LIKE '%Rubber%'");
 
 # SQL update with a registered table
diff --git a/docs/dev/table/sql/create.zh.md b/docs/dev/table/sql/create.zh.md
index a696912..7f7d359 100644
--- a/docs/dev/table/sql/create.zh.md
+++ b/docs/dev/table/sql/create.zh.md
@@ -89,9 +89,9 @@ table_env = TableEnvironment.create(settings)
 
 # 对已经已经注册的表进行 SQL 查询
 # 注册名为 “Orders” 的表
-tableEnv.sqlUpdate("CREATE TABLE Orders (`user` BIGINT, product STRING, amount INT) WITH (...)");
+tableEnv.sql_update("CREATE TABLE Orders (`user` BIGINT, product STRING, amount INT) WITH (...)");
 # 在表上执行 SQL 查询,并把得到的结果作为一个新的表
-result = tableEnv.sqlQuery(
+result = tableEnv.sql_query(
   "SELECT product, amount FROM Orders WHERE product LIKE '%Rubber%'");
 
 # SQL 对已注册的表进行 update 操作