Skip to content

Commit

Permalink
check if tempTable exists for ctas queries
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Jan 30, 2017
1 parent 31af01c commit b580ccb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ class QueryTable extends React.PureComponent {
} else {
// if query was run using ctas and force_ctas_schema was set
// tempTable will have the schema
const schemaUsed = q.ctas && q.tempTable.includes('.') ? '' : q.schema;
const schemaUsed = q.ctas && q.tempTable && q.tempTable.includes('.') ? '' : q.schema;
q.output = [schemaUsed, q.tempTable].filter((v) => (v)).join('.');
}
q.progress = (
Expand Down

0 comments on commit b580ccb

Please sign in to comment.