Question

I add a new column called "key" by doing an update on my existing table.

I insert some dummy data with "key" value and run the following query:

SELECT key, name, id ... 
FROM table
GROUP BY key, name, id ...

The query run correctly with following results:

  • existing data has key = null and existing data intact
  • dummy data contains valid key but no real data

However when I try to save this query as a View I get the following error:

Failed to create view. Field 'key' not found in table 'foo.table'.

This doesn't make sense because the column exists in the table. Does anyone come across this? My current work around is to just run the query without saving it as a View. However when I have more complicated queries involving this new "key" column it would be handy to be able to create Views containing the new column.

Was it helpful?

Solution

This issue has been acknowledge by Google and fixed via Enterprise Support ticket #04171323

Creating views should work now when a table has been altered with a new column.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top