You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/05/29 05:29:44 UTC

[GitHub] [flink] dianfu commented on a change in pull request #8474: [FLINK-12409][python] Adds from_elements in TableEnvironment

dianfu commented on a change in pull request #8474: [FLINK-12409][python] Adds from_elements in TableEnvironment
URL: https://github.com/apache/flink/pull/8474#discussion_r288398143
 
 

 ##########
 File path: flink-python/pyflink/table/table_environment.py
 ##########
 @@ -379,13 +383,97 @@ def create(cls, table_config):
 
         return t_env
 
+    def from_elements(self, elements, schema=None, verify_schema=True):
+        """
+        Creates a table from a collection of elements.
+
+        :param elements: The elements to create table from.
+        :param schema: The schema of the table.
+        :param verify_schema: Whether to verify the elements against the schema.
 
 Review comment:
   If the user is confident that all the elements are consistent with the schema, there is no need to verify the schema. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services