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

BigQuery: Add support for AVRO #277

Closed
danoscarmike opened this issue Dec 6, 2016 · 1 comment
Closed

BigQuery: Add support for AVRO #277

danoscarmike opened this issue Dec 6, 2016 · 1 comment
Assignees
Labels
api: bigquery Issues related to the BigQuery API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@danoscarmike
Copy link
Contributor

Refer Java issue for details - googleapis/google-cloud-java#1441

@dwsupplee dwsupplee added the api: bigquery Issues related to the BigQuery API. label Dec 6, 2016
@dwsupplee
Copy link
Contributor

Table::load() has AVRO support already handled, we should be good to go here.

An example:

require 'vendor/autoload.php';

use Google\Cloud\BigQuery\BigQueryClient;

$bigQuery = new BigQueryClient();
$table = $bigQuery->dataset('my_dataset')->table('my_table');

$table->load(fopen('/avro/test.avro', 'r'), [
    'jobConfig' => [
        'sourceFormat' => 'AVRO'     
    ]
]);

@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 7, 2020
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

No branches or pull requests

4 participants