Repository navigation
gcp-spark: Resolve Iceberg targets for Spark SQL query files. - #572
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
Spark SQL query files that start with a `@datacloud.settings` header run on a Managed Spark session created from the Runtime Profile in `connectionInfo.sessionTemplate`. The skill only described Runtime Profile catalog lookup for notebooks, so agents could write placeholder identifiers, duplicate the header inside statements, or pick arbitrary namespaces. - SKILL.md: rules for `@datacloud.settings` Spark SQL files: keep one header at the top, resolve the catalog from the Runtime Profile, create new tables in the profile's default catalog and namespace, read BigQuery through a `USING bigquery` temporary view, never modify Runtime Profiles without confirmation, and report BigLake permission errors instead of switching namespace or catalog. - references/biglake_iceberg.md: Option A and Case 1 cover Spark SQL files; new "Target for new tables" rule (`spark.sql.defaultCatalog` -> bare table name, otherwise `<catalog>.<default-namespace or default>.<table>`); Case 3 covers profiles without an Iceberg catalog; new "Permission Errors" section; CREATE NAMESPACE only for namespaces the user names. - Bump gcp-spark to v36. PiperOrigin-RevId: 1024736179
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
gcp-spark: Resolve Iceberg targets for Spark SQL query files.
Spark SQL query files that start with a
@datacloud.settingsheader run on aManaged Spark session created from the Runtime Profile in
connectionInfo.sessionTemplate. The skill only described Runtime Profilecatalog lookup for notebooks, so agents could write placeholder identifiers,
duplicate the header inside statements, or pick arbitrary namespaces.
@datacloud.settingsSpark SQL files: keep one header atthe top, resolve the catalog from the Runtime Profile, create new tables in
the profile's default catalog and namespace, read BigQuery through a
USING bigquerytemporary view, never modify Runtime Profiles withoutconfirmation, and report BigLake permission errors instead of switching
namespace or catalog.
new "Target for new tables" rule (
spark.sql.defaultCatalog-> bare tablename, otherwise
<catalog>.<default-namespace or default>.<table>); Case 3covers profiles without an Iceberg catalog; new "Permission Errors" section;
CREATE NAMESPACE only for namespaces the user names.