How To Load GCS Data To BigQuery | SQL Query

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024
  • Video demo on how to use SQL query to load data to BigQuery from GCS.
    Here is the Kaggle link for the dataset I used in the demo: www.kaggle.com...
    Below is the query I used to load the data:
    -- Can replace OVERWRITE with INTO if you want to append data instead
    LOAD DATA OVERWRITE `project_id.dataset_id.table_name` (
    CustomerID INT64
    ,Age INT64
    ,Gender STRING
    ,ItemPurchased STRING
    ,Category STRING
    ,PurcharseAmount FLOAT64
    ,Location STRING
    ,Size STRING
    ,Color STRING
    ,Season STRING
    ,ReviewRating FLOAT64
    ,SubscriptionStatus STRING
    ,ShippingType STRING
    ,DiscountApplied STRING
    ,PromoCodeUsed STRING
    ,PreviousPurchases INT64
    ,PaymentMethod STRING
    ,FrequencyOfPurchases STRING
    )
    FROM FILES (
    format = 'CSV',
    skip_leading_rows = 1,
    uris = ['gcs_file_uri']
    )
    #gcs
    #bigquery
    #sql
    #kaggle
    #gcp

ความคิดเห็น • 1

  • @CleophasKalekem
    @CleophasKalekem  16 วันที่ผ่านมา

    If you find this video useful please consider liking so it can reach wider audience. I would also appreciate so much if you can subscribe to the channel ❤