Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding functional Dataset, Table and Job to bigquery #490

Closed
mziccard opened this issue Dec 18, 2015 · 0 comments · Fixed by #516
Closed

Adding functional Dataset, Table and Job to bigquery #490

mziccard opened this issue Dec 18, 2015 · 0 comments · Fixed by #516
Assignees
Labels
api: bigquery Issues related to the BigQuery API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@mziccard
Copy link
Contributor

We should add functional classes (Dataset, Table and Job) to gcloud-java-bigquery, to make using the library easier. Functional classes should allow something like:

// get an existing dataset
Dataset dataset = Dataset.load(bigquery, "my_dataset_id");
// create a table
Table table = dataset.create("my_table_id", Schema.of(field1, field2));
// copy a table
Job copyJob = table.copy(TableId.of("my_dataset_id", "my_copy_table_id");
// cancel a job
copyJob.cancel();
// load data into the table
Job loadJob = table.load(FormatOptions.csv(), ImmutableList.of("gs://my-bucket/my-file.csv"));
// wait for job to complete
while (!loadJob.isDone()) {
  loadJob = loadJob.reload();
  Thread.sleep(1000);
}

Comments are welcome:)
/cc @jtigani

@mziccard mziccard added the api: bigquery Issues related to the BigQuery API. label Dec 18, 2015
@mziccard mziccard self-assigned this Dec 18, 2015
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
github-actions bot pushed a commit that referenced this issue Jun 23, 2022
…cies to v2.13.0 (#490)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-dependencies</summary>

### [`v2.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#&#8203;2130-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2120v2130-2022-06-22)

[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.12.0...v2.13.0)

##### Dependencies

-   update dependency com.google.api-client:google-api-client-bom to v1.35.0 ([#&#8203;709](https://togithub.com/googleapis/java-shared-dependencies/issues/709)) ([239f8c3](https://togithub.com/googleapis/java-shared-dependencies/commit/239f8c33a11e233e6af79aee8c7e68cd156a0554))
-   update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#&#8203;713](https://togithub.com/googleapis/java-shared-dependencies/issues/713)) ([6559b45](https://togithub.com/googleapis/java-shared-dependencies/commit/6559b45b027dba783a9525d35e32183d78773cbe))
-   update dependency com.google.api:api-common to v2.2.1 ([#&#8203;710](https://togithub.com/googleapis/java-shared-dependencies/issues/710)) ([650d4c5](https://togithub.com/googleapis/java-shared-dependencies/commit/650d4c5f8c3cfce711257d47280ad773cd2e2414))
-   update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#&#8203;701](https://togithub.com/googleapis/java-shared-dependencies/issues/701)) ([d24730f](https://togithub.com/googleapis/java-shared-dependencies/commit/d24730f78669f80b109e590b903446e5552e3e36))
-   update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#&#8203;711](https://togithub.com/googleapis/java-shared-dependencies/issues/711)) ([5168a18](https://togithub.com/googleapis/java-shared-dependencies/commit/5168a181722128d434a0d0d2ab5cc485686bbc78))
-   update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.0 ([#&#8203;708](https://togithub.com/googleapis/java-shared-dependencies/issues/708)) ([620336e](https://togithub.com/googleapis/java-shared-dependencies/commit/620336e6733e2017116e5e8a7b403b183a728bc1))
-   update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.1 ([#&#8203;712](https://togithub.com/googleapis/java-shared-dependencies/issues/712)) ([a2c18a5](https://togithub.com/googleapis/java-shared-dependencies/commit/a2c18a5bc4152cc9034cec691a29f54a35c38a51))
-   update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#&#8203;703](https://togithub.com/googleapis/java-shared-dependencies/issues/703)) ([5f9fe12](https://togithub.com/googleapis/java-shared-dependencies/commit/5f9fe1200b4bdf4c54bf947c21bd3ed02f26f990))
-   update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#&#8203;705](https://togithub.com/googleapis/java-shared-dependencies/issues/705)) ([c68edfb](https://togithub.com/googleapis/java-shared-dependencies/commit/c68edfbe7e1993e1112640b867b29aa2fbcf7579))
-   update dependency io.grpc:grpc-bom to v1.47.0 ([#&#8203;707](https://togithub.com/googleapis/java-shared-dependencies/issues/707)) ([d02918a](https://togithub.com/googleapis/java-shared-dependencies/commit/d02918a0418cd65d1d247f27afb0637f1f8f5666))
-   update dependency org.checkerframework:checker-qual to v3.22.1 ([#&#8203;706](https://togithub.com/googleapis/java-shared-dependencies/issues/706)) ([545843b](https://togithub.com/googleapis/java-shared-dependencies/commit/545843b492cead230b8cc72a1dae7d4922f33b39))
-   update dependency org.checkerframework:checker-qual to v3.22.2 ([#&#8203;717](https://togithub.com/googleapis/java-shared-dependencies/issues/717)) ([142852a](https://togithub.com/googleapis/java-shared-dependencies/commit/142852a37140f221197f5c71aed451def353b1e0))
-   update gax.version to v2.18.2 ([#&#8203;718](https://togithub.com/googleapis/java-shared-dependencies/issues/718)) ([5f8156e](https://togithub.com/googleapis/java-shared-dependencies/commit/5f8156e55c6a07b018a8c5efafa68be781b4288b))
-   update google.common-protos.version to v2.9.0 ([#&#8203;714](https://togithub.com/googleapis/java-shared-dependencies/issues/714)) ([9e5591e](https://togithub.com/googleapis/java-shared-dependencies/commit/9e5591ec3035350450ecbfebd00e08216433b06c))
-   update google.core.version to v2.8.0 ([#&#8203;719](https://togithub.com/googleapis/java-shared-dependencies/issues/719)) ([4023c60](https://togithub.com/googleapis/java-shared-dependencies/commit/4023c6063a2c5b5308da531df1a08c90c491965d))
-   update iam.version to v1.4.0 ([#&#8203;700](https://togithub.com/googleapis/java-shared-dependencies/issues/700)) ([c1097a4](https://togithub.com/googleapis/java-shared-dependencies/commit/c1097a46ab0739b0b7234bc510e4c3d9ce2c2861))
-   update iam.version to v1.4.1 ([#&#8203;716](https://togithub.com/googleapis/java-shared-dependencies/issues/716)) ([e2dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/e2dc7c21c39e007878841e2664d548ec44a72d54))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-dialogflow-cx).
github-actions bot pushed a commit that referenced this issue Jun 23, 2022
🤖 I have created a release *beep* *boop*
---


## [0.13.1](googleapis/java-dialogflow-cx@v0.13.0...v0.13.1) (2022-06-23)


### Dependencies

* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#490](googleapis/java-dialogflow-cx#490)) ([65133d8](googleapis/java-dialogflow-cx@65133d8))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jun 29, 2022
This PR was generated using Autosynth. 🌈


<details><summary>Log from Synthtool</summary>

```
2021-05-17 01:53:56,828 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-resourcemanager/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-05-17 01:53:58,198 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.

```
</details>

Full log will be available here:
https://source.cloud.google.com/results/invocations/eb32739b-6e45-4f3f-9eed-b27039b19b6d/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)
github-actions bot pushed a commit to suztomo/google-cloud-java that referenced this issue Jun 29, 2022
)

* chore: update dependencies for regapic

* add more dependencies and trigger comment

* update goldens

* fix indentation

* remove duplicate gax-httpjson dependency

* remove duplicated dependencies
Source-Link: googleapis/synthtool@fa54eb2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906
github-actions bot pushed a commit that referenced this issue Aug 9, 2022
…490)

* Added error message on user setup.

* Divided sh script into steps for error handling.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
github-actions bot pushed a commit that referenced this issue Sep 15, 2022
🤖 I have created a release *beep* *boop*
---


## [2.3.3](googleapis/java-workflows@v2.3.2...v2.3.3) (2022-09-09)


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#489](googleapis/java-workflows#489)) ([cf9d6c2](googleapis/java-workflows@cf9d6c2))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Oct 4, 2022
🤖 I have created a release *beep* *boop*
---


## [2.5.3](https://togithub.com/googleapis/java-functions/compare/v2.5.2...v2.5.3) (2022-10-03)


### Dependencies

* Update dependency certifi to v2022.9.24 ([#472](https://togithub.com/googleapis/java-functions/issues/472)) ([7b30732](https://togithub.com/googleapis/java-functions/commit/7b30732c6359a827616aed1dba184544df95ec37))
* Update dependency charset-normalizer to v2.1.1 ([#479](https://togithub.com/googleapis/java-functions/issues/479)) ([059a126](https://togithub.com/googleapis/java-functions/commit/059a1268254468b2b86950ad7d0ca8b4d4446d60))
* Update dependency click to v8.1.3 ([#480](https://togithub.com/googleapis/java-functions/issues/480)) ([808075d](https://togithub.com/googleapis/java-functions/commit/808075d9b02a6aa3bc7ad5ec94d6dc9b94cc2588))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#497](https://togithub.com/googleapis/java-functions/issues/497)) ([f8ac08b](https://togithub.com/googleapis/java-functions/commit/f8ac08b604a81f544a55e82f45cb540f6cf44638))
* Update dependency gcp-releasetool to v1.8.8 ([#477](https://togithub.com/googleapis/java-functions/issues/477)) ([5bbe57f](https://togithub.com/googleapis/java-functions/commit/5bbe57f388219a8d0e058a4199e9f5abf457e3a2))
* Update dependency google-api-core to v2.10.1 ([#481](https://togithub.com/googleapis/java-functions/issues/481)) ([05b981c](https://togithub.com/googleapis/java-functions/commit/05b981c68f17497993059c3cc082c8b854c82dc8))
* Update dependency google-cloud-core to v2.3.2 ([#473](https://togithub.com/googleapis/java-functions/issues/473)) ([70370a5](https://togithub.com/googleapis/java-functions/commit/70370a5883ee497d5934e9c874653fab6e692468))
* Update dependency importlib-metadata to v4.12.0 ([#482](https://togithub.com/googleapis/java-functions/issues/482)) ([bab4cb5](https://togithub.com/googleapis/java-functions/commit/bab4cb59880f91c8dd93e3ff07ac6152844744f2))
* Update dependency jeepney to v0.8.0 ([#483](https://togithub.com/googleapis/java-functions/issues/483)) ([ddb1529](https://togithub.com/googleapis/java-functions/commit/ddb1529c5f631703e047634b9c09e516c6ce16e8))
* Update dependency keyring to v23.9.3 ([#485](https://togithub.com/googleapis/java-functions/issues/485)) ([856993e](https://togithub.com/googleapis/java-functions/commit/856993e803c18331bed2e9c2576f4182694380b3))
* Update dependency markupsafe to v2.1.1 ([#486](https://togithub.com/googleapis/java-functions/issues/486)) ([bb11c09](https://togithub.com/googleapis/java-functions/commit/bb11c09a578191ea6b770b0b055474101f8462bb))
* Update dependency protobuf to v3.20.2 ([#487](https://togithub.com/googleapis/java-functions/issues/487)) ([875c9c2](https://togithub.com/googleapis/java-functions/commit/875c9c2a3e77010a0ba6052a23454c40a1349c4f))
* Update dependency typing-extensions to v4.3.0 ([#490](https://togithub.com/googleapis/java-functions/issues/490)) ([4b2af03](https://togithub.com/googleapis/java-functions/commit/4b2af03c457600c4e840e0a355d71200088b6096))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
github-actions bot pushed a commit to renovate-bot/google-cloud-java that referenced this issue Oct 5, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
github-actions bot pushed a commit to renovate-bot/google-cloud-java that referenced this issue Oct 5, 2022
suztomo pushed a commit that referenced this issue Feb 1, 2023
🤖 I have created a release *beep* *boop*
---


## [1.6.6](https://togithub.com/googleapis/java-iam/compare/v1.6.5...v1.6.6) (2022-10-25)


### Dependencies

* Update dependency com.google.cloud:google-iam-policy to v1.6.5 ([#489](https://togithub.com/googleapis/java-iam/issues/489)) ([558cafc](https://togithub.com/googleapis/java-iam/commit/558cafcfc10c7465465499e6df28c66afd57f6bf))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants