- Check IAM Permissions:
- aiplatform.notebookRuntimes.assign
- appengine.applications.get
- bigquery.connections.create
- bigquery.connections.list
- bigquery.datasets.create
- bigquery.datasets.delete
- bigquery.datasets.get
- bigquery.datasets.getIamPolicy
- bigquery.datasets.listTagBindings
- bigquery.jobs.create
- bigquery.jobs.list
- bigquery.jobs.listAll
- bigquery.models.create
- bigquery.models.delete
- bigquery.models.getData
- bigquery.models.list
- bigquery.models.updateData
- bigquery.models.updateMetadata
- bigquery.reservationAssignments.list
- bigquery.reservations.list
- bigquery.routines.delete
- bigquery.routines.get
- bigquery.routines.list
- bigquery.savedqueries.create
- bigquery.savedqueries.delete
- bigquery.savedqueries.get
- bigquery.savedqueries.list
- bigquery.tables.getIamPolicy
- bigquery.tables.setIamPolicy
- bigquery.transfers.get
- bigquery.transfers.update
- billing.resourcebudgets.read
- billing.resourceCosts.get
- cloudasset.assets.searchAllResources
- cloudnotifications.activities.list
- cloudprivatecatalogproducer.products.create
- dataform.repositories.commit
- dataform.repositories.create
- dataform.repositories.list
- iam.serviceAccounts.get
- iam.serviceAccounts.list
- logging.logEntries.list
- logging.privateLogEntries.list
- monitoring.notificationChannels.list
- orgpolicy.policy.get
- recommender.bigqueryPartitionClusterRecommendations.list
- recommender.iamPolicyInsights.get
- recommender.iamPolicyInsights.list
- recommender.iamPolicyLateralMovementInsights.get
- recommender.iamPolicyLateralMovementInsights.list
- recommender.iamPolicyRecommendations.get
- recommender.iamPolicyRecommendations.list
- recommender.iamPolicyRecommendations.update
- resourcemanager.projects.createBillingAssignment
- resourcemanager.projects.get
- resourcemanager.projects.getIamPolicy
- resourcemanager.projects.setIamPolicy
- resourcemanager.projects.update
- serviceusage.services.disable
- serviceusage.services.enable
- serviceusage.services.get
- serviceusage.services.list
-
Examine the Specific Table: - I believe this is misleading bc it’s a new table I am trying to write, so it does NOT exist yet
-
Review Recent Changes: - I’ve not touched IAM perms in many months (years?)
-
Try a Different Query or Table:
Well this is interesting. I tried a brain-dead simple query and was able to export the results to a BQ Table. Now, one thing I notice is that the original query (that I referenced) is under the category of “Shared queries”. The one I was able to run is under "(Classic) Queries (122)->“Project queries”. Could that be causing this? I rarely use the resident BQ Editor anymore. I switched over to using Coginiti for editing, but that product doesnt support reading JSON tables so I created the new queries in BQ. But again, it was working yesterday…
SELECT DISTINCT
*,
DATE_TRUNC(CURRENT_DATE(), WEEK(MONDAY)) AS HistoryWeek
FROM `ps-analytics-329721.Query_Tables.qt_LoE_Perf`
- Use thebqCommand-Line Tool: - I am not familiar with using the bq CMD line so I’d need to figure that out.
6. Review Quotas and Limits: - Hmmm I am seeing this “Current usage > 90%”. When I go to “Edit Quota”, there no Quotas to choose. Could this be the issue?
7. Inspect the Query:
# Day 1
SELECT
meta.count,
meta.`completed-in`,
data.country,
data.language,
(SELECT STRING_AGG(CAST(entityTags AS STRING), '\n') FROM UNNEST(data.entityTags) entityTags) AS entityTags,
(SELECT STRING_AGG(modelTags, '\n') FROM UNNEST(data.modelTags) modelTags) AS modelTags,
(SELECT STRING_AGG(makeTags, '\n') FROM UNNEST(data.makeTags) makeTags) AS makeTags,
data.sa,
data.messageType,
(SELECT STRING_AGG(classTags, '\n') FROM UNNEST(data.classTags) classTags) AS classTags,
data.published,
data.author,
data.content,
data.link,
data.queue,
(SELECT STRING_AGG(userTags, '\n') FROM UNNEST(data.userTags) userTags) AS userTags,
data.title,
data.dataSource,
data.threadId,
data.dataCategory,
data.id,
DATE_TRUNC(CAST(data.published AS DATE), DAY) AS min_Week,
DATE_ADD(CAST(data.published AS DATE), INTERVAL 1 WEEK) AS max_Week
FROM `ps-analytics-329721.XT_Web_Logs.xt_Ford_01` CROSS JOIN UNNEST(`data`) as data
WHERE
(data.dataSource LIKE '%Mustang%' OR data.dataSource LIKE '%F150%' OR data.dataSource LIKE '%Escape%')
AND data.messageType ='public'
AND (data.country ='USA' OR data.country='Canada')
AND data.queue <> 'Not Relevant'
UNION ALL
# Day 2
Repeats for 31 Days ...
I am wondering if this is because the data is JSON and has repeatable sections?
Table info
Table ID: ps-analytics-329721.XT_Web_Logs.xt_Ford_01
Created: Dec 11, 2023, 7:31:39 PM UTC-5
Last modified: Dec 11, 2023, 7:32:10 PM UTC-5
Table expiration: NEVER
Data location: US
Case insensitive: false
Description: Labels
Primary key(s): External Data Configuration
Source URI(s): https://drive.google.com/open?id=1YhNpquVz9YqU8PODkL7EiTn2NOTh7eYU
Auto-detect schema: true
Ignore unknown values: false
Source format: NEWLINE_DELIMITED_JSON
Compression:
Connection ID:
7. Check Dataset Permissions: - Yes, absolutely. It’s my dataset. In fact I am the owner of every dataset under the Project level.