[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-17。"],[[["\u003cp\u003eThe \u003ccode\u003eINFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION\u003c/code\u003e view provides data on BigQuery recommendations for all projects within a specified Google Cloud organization, including partition/cluster, materialized view, and role recommendations for datasets.\u003c/p\u003e\n"],["\u003cp\u003eAccess to this view requires users to have defined Google Cloud organizations and the necessary permissions for each specific recommender, and it will only display recommendations that the user is permitted to view.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is currently in a Pre-GA stage, meaning it is available "as is," might have limited support, and is subject to the Pre-GA Offerings Terms.\u003c/p\u003e\n"],["\u003cp\u003eQueries to the view must include a region qualifier, and an optional project ID, and if no project is specified it defaults to the project the query is running in.\u003c/p\u003e\n"],["\u003cp\u003eThe schema of this view includes various columns such as \u003ccode\u003erecommendation_id\u003c/code\u003e, \u003ccode\u003erecommender\u003c/code\u003e, \u003ccode\u003eproject_id\u003c/code\u003e, \u003ccode\u003edescription\u003c/code\u003e, and \u003ccode\u003eadditional_details\u003c/code\u003e, which provide comprehensive details about each recommendation.\u003c/p\u003e\n"]]],[],null,["# INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION view\n=======================================================\n\n|\n| **Preview**\n|\n|\n| This product or feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA products and features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nTo request feedback or support for this feature, send email to\n[bq-recommendations+feedback@google.com](mailto:bq-recommendations+feedback@google.com).\n\nThe `INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION` view contains data about all BigQuery\nrecommendations for all projects in the current organization.\n\nThe `INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION` view supports the following\nrecommendations:\n\n- [Partition and cluster recommendations](/bigquery/docs/view-partition-cluster-recommendations)\n- [Materialized view recommendations](/bigquery/docs/manage-materialized-recommendations)\n- [Role recommendations for BigQuery datasets](/policy-intelligence/docs/review-apply-role-recommendations-datasets)\n\nThis schema view is only available to users with defined [Google Cloud organizations](/resource-manager/docs/cloud-platform-resource-hierarchy#organizations).\n\nRequired permissions\n--------------------\n\nTo view recommendations with the\n`INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION` view, you must have the\nrequired permissions for the corresponding recommender. The\n`INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION` view only returns\nrecommendations that you have permission to view. When you have the required\npermissions on the organization, you can view recommendations for all projects\nwithin that organization, regardless of your permissions on the project itself.\n\nAsk your administrator to grant access to view the recommendations. To see the\nrequired permissions for each recommender, see the following:\n\n- [Partition \\& cluster recommender permissions](/bigquery/docs/view-partition-cluster-recommendations#required_permissions)\n- [Materialized view recommendations permissions](/bigquery/docs/manage-materialized-recommendations#required_permissions)\n- [Role recommendations for datasets permissions](/policy-intelligence/docs/review-apply-role-recommendations-datasets#required-permissions)\n\nSchema\n------\n\nThe `INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION` view has the following\nschema:\n\nScope and syntax\n----------------\n\nQueries against this view must include a\n[region qualifier](/bigquery/docs/information-schema-intro#syntax). A project ID\nis optional. If no project ID is specified, the project that the query runs\nin is used.\n\nReplace the following:\n\n- Optional: \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your Google Cloud project. If not specified, the default project is used.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: any [dataset region name](/bigquery/docs/locations). For example, ```region-us```.\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n | **Note:** You must use [a region qualifier](/bigquery/docs/information-schema-intro#region_qualifier) to query `INFORMATION_SCHEMA` views. The location of the query execution must match the region of the `INFORMATION_SCHEMA` view.\n\n\u003cbr /\u003e\n\nExample\n-------\n\nTo run the query against a project other than your default project, add the\nproject ID in the following format: \n\n```bash\n`PROJECT_ID`.`region-REGION_NAME`.INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION\n```\nReplace the following:\n\n\u003cbr /\u003e\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project.\n- \u003cvar translate=\"no\"\u003eREGION_NAME\u003c/var\u003e: the region for your project.\n\nFor example, ```myproject`.`region-us`.INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION``.\n\n### View materialized view recommendations in organization\n\nThe following example returns materialized view recommendations in the\norganization: \n\n SELECT\n project_id,\n LAX_INT64(additional_details.overview.bytesSavedMonthly) / POW(1024, 3) as est_gb_saved_monthly,\n LAX_INT64(additional_details.overview.slotMsSavedMonthly) / (1000 * 3600) as slot_hours_saved_monthly,\n last_updated_time\n FROM\n `region-us`.INFORMATION_SCHEMA.RECOMMENDATIONS_BY_ORGANIZATION\n WHERE\n recommender = 'google.bigquery.materializedview.Recommender'\n LIMIT 3;\n\n| **Note:** `INFORMATION_SCHEMA` view names are case sensitive.\n\nThe result is similar to the following: \n\n```\n+-------------------------------+----------------------------------------------------------------------+\n| project_id | est_gb_saved_monthly| slot_hours_saved_monthly | last_updated_time |\n+-------------------------------+----------------------------------------------------------------------+\n| project1 | 4689.071544663957 | 2682.1816833333337 | 2024-07-01 13:00:31 |\n| project2 | 137.5052567309467 | 9613.139166666666 | 2024-07-01 13:00:31 |\n| project3 | 146.83722260318973 | 7093.014316666667 | 2024-07-01 13:00:31 |\n+-------------------------------+----------------------------------------------------------------------+\n```"]]