evadb.EvaDBCursor.load#

EvaDBCursor.load(file_regex: str, table_name: str, format: str, **kwargs) EvaDBQuery[source]#

Loads data from files into a table.

Parameters:
  • file_regex (str) – Regular expression specifying the files to load.

  • table_name (str) – Name of the table.

  • format (str) – File format of the data.

  • **kwargs – Additional keyword arguments for configuring the load operation.

Returns:

The EvaDBQuery object representing the load query.

Return type:

EvaDBQuery

Examples

Load the online_video.mp4 file into table named ‘youtube_video’.

>>> cursor.load(file_regex="online_video.mp4", table_name="youtube_video", format="video").df()
        0
0   Number of loaded VIDEO: 1