官术网_书友最值得收藏!

Working with the browser

To access BigQuery via a browser, go to https://bigquery.cloud.google.com. Once you log in, you will be seeing the BigQuery console; click on the down arrow in the project name and choose the Create new dataset option. Enter a name for your dataset in Dataset ID and choose the Data location and Never for Data expiration. Click on Ok to finish creating the dataset.

To create a new table under the dataset:

  1. Click on the down arrow and choose Create new table; you will be presented with the following screen.
  2. Choose the options as shown in the screenshot and click on Choose file button. Upload the file that you downloaded from https://github.com/hthirukkumaran/Learning-Google-BigQuery/blob/master/chapter1/employeedetails.csv.
  3. Choose Automatically detect for Schema and click on Create table. This option will automatically use the column names specified as the first row in the file for the table and import rest of the rows into the table:

Once the table is created, you can see its details by clicking on the table name in the left-hand-side navigation under the dataset name. You can click on the schema, details, and preview table to see information about the table and the data in the table without running any query:

To import a file from Google Cloud storage:

  1. Create a new table as done previously and then choose Google Cloud storage in the Location option as shown in the following screenshot
  2. Enter the name of the bucket created previously and the file that was uploaded to that bucket
  1. Click on Create Table to create the table from the file in Google Cloud storage:
主站蜘蛛池模板: 湄潭县| 武冈市| 兴安县| 鹿邑县| 原平市| 库车县| 拉孜县| 贵港市| 偃师市| 扎兰屯市| 台南县| 旌德县| 巴马| 武汉市| 盐山县| 苍梧县| 偏关县| 宣城市| 乐业县| 洞口县| 合水县| 苏尼特左旗| 金堂县| 洮南市| 赤水市| 通辽市| 忻城县| 蒙山县| 衡山县| 蕲春县| 昭苏县| 和平区| 吉林省| 安岳县| 盱眙县| 平阴县| 三亚市| 聂拉木县| 武安市| 中阳县| 苗栗市|