#NEWLINE# def parquet_file( self , hdfs_dir , schema = None , name = None , database = None , external = True , like_file = None , like_table = None , persist = False ) : #NEWLINE# #INDENT# '\n        Make indicated parquet file in HDFS available as an Ibis table.\n\n        The table created can be optionally named and persisted, otherwise a\n        unique name will be generated. Temporarily, for any non-persistent\n        external table created by Ibis we will attempt to drop it when the\n        underlying object is garbage collected (or the Python interpreter shuts\n        down normally).\n\n        Parameters\n        ----------\n        hdfs_dir : string\n          Path in HDFS\n        schema : ibis Schema\n          If no schema provided, and neither of the like_* argument is passed,\n          one will be inferred from one of the parquet files in the directory.\n        like_file : string\n          Absolute path to Parquet file in HDFS to use for schema\n          definitions. An alternative to having to supply an explicit schema\n        like_table : string\n          Fully scoped and escaped string to an Impala table whose schema we\n          will use for the newly created table.\n        name : string, optional\n          random unique name generated otherwise\n        database : string, optional\n          Database to create the (possibly temporary) table in\n        external : boolean, default True\n          If a table is external, the referenced data will not be deleted when\n          the table is dropped in Impala. Otherwise (external=False) Impala\n          takes ownership of the Parquet file.\n        persist : boolean, default False\n          Do not drop the table upon Ibis garbage collection / interpreter\n          shutdown\n\n        Returns\n        -------\n        parquet_table : ImpalaTable\n        ' #NEWLINE# ( name , database ) = self . _get_concrete_table_path ( name , database , persist = persist ) #NEWLINE# if ( ( like_file is None ) and ( like_table is None ) and ( schema is None ) ) : #NEWLINE# #INDENT# file_name = self . hdfs . _find_any_file ( hdfs_dir ) #NEWLINE# like_file = pjoin ( hdfs_dir , file_name ) #NEWLINE# #UNINDENT# stmt = ddl . CreateTableParquet ( name , hdfs_dir , schema = schema , database = database , example_file = like_file , example_table = like_table , external = external , can_exist = False ) #NEWLINE# self . _execute ( stmt ) #NEWLINE# return self . _wrap_new_table ( name , database , persist )