英文:
How to create a temporary table using the BigQuery Ruby library?
问题
在文档中找不到相应的选项。是否可以使用BigQuery Ruby库创建临时表?
英文:
I can't find a corresponding option in the documentation. Is it possible to create a temporary table with the BigQuery Ruby library?
答案1
得分: 1
我假设你的“temporary”意味着你只想创建一个仅供一次使用的表。
在这种情况下,据我所知,没有直接的选项,但你可以创建它然后像执行事务一样删除它。
require "google/cloud/bigquery"
bigquery = Google::Cloud::Bigquery.new
dataset = bigquery.dataset "my_dataset"
# 对数据集执行操作
dataset.delete
英文:
I assume your 'temporary' means you want to create a table only for one time usage.
In that case, as far as I know, there is no direct option but you can create and then delete it like a transactional behavior
require "google/cloud/bigquery"
bigquery = Google::Cloud::Bigquery.new
dataset = bigquery.dataset "my_dataset"
# Do something with the dataset
dataset.delete
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论