-
Notifications
You must be signed in to change notification settings - Fork 60
Prevent creating unnecessary tables. #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent creating unnecessary tables. #148
Conversation
@hiroyuki-sato Hi, could you review it? It needs to insert into the destination project instead. |
@p-eye It seems this PR needs additional modification. I'll take a look at the difference. |
@kashira202111, @p-eye I misunderstood about this PR. |
@hiroyuki-sato Thank you for your reply, I'm going to resolve the conflicts. Please wait a moment. |
@kashira202111 Thank you for your work and sorry for waiting for the review. I want to confirm the following.
If my understanding is correct, this PR type is the fix for the error, We don't need to consider compatibility. Please tell me about detail about above. |
f3796f9
to
18c2816
Compare
The important purpose of this PR is create table to If you want to reproduce this error, you must prepare below.
out:
type: bigquery
auth_method: json_key
mode: 'replace'
project: 'xxx'
destination_project: 'yyy'
dataset: 'aaa'
json_keyfile: '{service_account.json}'
auto_create_dataset: false
auto_create_table: true |
@hiroyuki-sato I am sorry that my English is so bad. Could you check again? |
@kashira202111 Thank you for your work. I'll review this PR in a week. Please wait. |
@kashira202111 I can't take time for review. Please wait for a while. |
Hello, @kashira202111 and @p-eye Does this PR fix the problem if a user uses the The following configuration created the Is my understanding correct? As a workaround, can you remove out:
type: bigquery
mode: replace
project: bqtest
destination_project: bqtest2
dataset: mydataset
auth_method: service_account
json_keyfile: 'key_file`
auto_create_dataset: false
auto_create_table: true
table: hello_embulk |
@hiroyuki-sato
I'm going to check this. Please wait for a while. |
Both using But I found another problem about |
I issue the problem later. Please wait for a while. |
This is the problem that I mentioned above. |
I would like to double-check about this issue, Could you tell me again the problem? |
destination_project
,
@hiroyuki-sato Could you review this PR again? |
08ea588
to
876553b
Compare
@kashira202111 Thank you for proposing this PR. I confirmed this PR fixes the problem. Expect behavior: Load data into the
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM👍
@joker1007 Could you take a look when you have time?
Due to another reason, CI doesn't run correctly, #165 fixes the problem.
After merging #165, I'll try to rerun CI.
@kashira202111 Fix CI in #166. Could you rebase this PR to check CI? |
876553b
to
5ed9f0d
Compare
@hiroyuki-sato Thank you. I rebased this PR ! |
@joker1007 CI passed. Please take a look when you have time. |
Thanks! |
@p-eye and @kashira202111 embulk-output-bigquery 0.7.2 has been released. 0.7.2 includes this PR. Please try it. |
It works well, thanks to you guys. |
Why
The plugin creates two unnecessary tables in
project
besides a table indestination_project
. One is empty table and the other is a empty temp_table.This behavior requests extra permissions and datasets. Therefore I would like to fix this.
How to check operation
Settings
load.yml
data.csv
initial state of GCP

Run command
Results
Before
After