Handle case where no results are being returned from a tableQuery()

Description

Easiest way to reproduce this is to create a file view with its Project in its scope being an empty Project

On syn.tableQuery('SELECT * FROM syn12118564', 'rowset'):
we get an ValueError: Column headers must be defined to create a RowSet

On syn.tableQuery('SELECT * FROM syn12118564', 'csv'):
SynapseHTTPError: 400 Client Error: Bad Request
Table syn12118564 has an empty schema

The csv will soon change to returning an empty CSV file after

Environment

None

Assignee

Unassigned

Reporter

Ziming Dong

Labels

None

Validator

Ziming Dong

Development Area

None

Release Version History

None

Slack Channel

None

Epic Link

Components

Priority

Major