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

Exception message not printed out if it's not json in runTransform #61

Merged

Conversation

mservidio
Copy link
Contributor

@mservidio
Copy link
Contributor Author

/gcbrun

await dataset.createTable(config.destinationTable, { schema: config.metadata.fields });
}
const transform = `SELECT ${transformQuery}, '${batchId}' AS ${processPrefix}_batch_id FROM \`${config.dataset}.${config.stagingTable}\``;
// const exists = tableExists(config.dataset, config.destinationTable);
Copy link
Contributor Author

@mservidio mservidio Nov 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, commenting out the exists check as it was broken. As such there is no change in behavior here. Once we address the mode/description issue we can add this back as needed.

@@ -213,8 +214,10 @@ async function fromStorage(bucket, file) {
async function tableExists(datasetId, tableName) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed issue where this function wasn't returning a boolean.

@salsferrazza
Copy link
Contributor

LGTM

@salsferrazza salsferrazza reopened this Nov 6, 2019
@salsferrazza salsferrazza merged commit 5419fc5 into master Nov 6, 2019
@salsferrazza salsferrazza deleted the #52-Exception-message-not-printed-out-if-it's-not-json branch November 6, 2019 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants