check if tempTable exists for ctas queries (#2073)

This commit is contained in:
vera-liu
2017-01-30 17:08:52 -08:00
committed by GitHub
parent 2d419e4253
commit 3a5a927dc6

View File

@@ -140,7 +140,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 = (