Skip to content
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

How to insert query after create table #1095

Closed
fzn0x opened this issue Apr 10, 2022 · 2 comments
Closed

How to insert query after create table #1095

fzn0x opened this issue Apr 10, 2022 · 2 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@fzn0x
Copy link

fzn0x commented Apr 10, 2022

Latest nodejs, latest nodejs-bigquery,

Seems like I can't insert using table response after create table

const [table] = await bqClient
.dataset(bqDataset)
.createTable(bqTable, options);
        
await table.insert(mapData); /// not working and resulting to "Table 719969171721:dataset_name.table_name not found."
@fzn0x fzn0x added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Apr 10, 2022
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/nodejs-bigquery API. label Apr 10, 2022
@fzn0x fzn0x closed this as completed Apr 10, 2022
@fzn0x
Copy link
Author

fzn0x commented Apr 10, 2022

I found it was much more complex bug, seems the solution to be flaky.

@fzn0x fzn0x reopened this Apr 10, 2022
@fzn0x
Copy link
Author

fzn0x commented Apr 10, 2022

The solution was to using setTimeout / sleep / delay.

Reference :
wepay/kafka-connect-bigquery@ca32148
googleapis/google-cloud-go#975

@fzn0x fzn0x closed this as completed Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/nodejs-bigquery API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants