【问题标题】:The meaning of wait in execute_sql statementexecute_sql语句中wait的含义
【发布时间】:2022-01-12 05:42:09
【问题描述】:

我想知道使用和不使用wait() 命令在pyflink 中执行sql 语句有什么区别和影响:

t_env.execute_sql(query)
t_env.execute_sql(query).wait()

我对两者都进行了试验,但在执行方面没有发现任何差异。

【问题讨论】:

    标签: apache-flink pyflink


    【解决方案1】:
    def wait(self, timeout_ms: int = None):
        """
        Wait if necessary for at most the given time (milliseconds) for the data to be ready.
    
        For a select operation, this method will wait until the first row can be accessed locally.
        For an insert operation, this method will wait for the job to finish,
        because the result contains only one row.
        For other operations, this method will return immediately,
        because the result is already available locally.
    
        .. versionadded:: 1.12.0
        """
    

    【讨论】:

      猜你喜欢
      • 2016-05-03
      • 2014-05-16
      • 1970-01-01
      • 2010-10-15
      • 1970-01-01
      • 2023-03-28
      • 2020-09-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多