Query script
Stay organized with collections
Save and categorize content based on your preferences.
Run a query script.
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["\u003cp\u003eThis page demonstrates how to run a query script in BigQuery using Java and Python client libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code samples show how to declare variables, build arrays, and perform a query to find common names between the top 100 names from a specific year and Shakespeare's plays.\u003c/p\u003e\n"],["\u003cp\u003eThe examples showcase the use of \u003ccode\u003eBigQuery\u003c/code\u003e client objects and configurations for running scripts and obtaining the results.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication for BigQuery is necessary and requires setting up Application Default Credentials, as detailed in the linked documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe scripts create multiple child jobs that can be retrieved and whose outcomes can be printed, as demonstrated in the Java and Python samples.\u003c/p\u003e\n"]]],[],null,[]]