blazingsql.BlazingContext.gs¶
-
BlazingContext.
gs
(prefix, **kwargs)¶ Register a Google Storage bucket.
- namestring that represents the name with which you will refer to
your GS bucket.
project_id : string name of your Google Cloud Platform project. bucket_name : string of the name of your GS bucket. use_default_adc_json_file (optional) : boolean, whether or not to use
the default GCP ADC JSON.
- adc_json_file (optional)string with the location of your custom
ADC JSON.
Register and create table from a GS bucket:
>>> bc.gs('gs_1gb', project_id='blazingsql-enduser', bucket_name='bsql') >>> bc.create_table('nation', 'gs://gs_1gb/tpch_sf1/nation/0_0_0.parquet') <pyblazing.apiv2.context.BlazingTable at 0x7f11897c0310>