Skip to Content
Learning Google BigQuery
book

Learning Google BigQuery

by Thirukkumaran Haridass, Eric Brown
December 2017
Beginner to intermediate
264 pages
5h 38m
English
Packt Publishing
Content preview from Learning Google BigQuery

Message output formats

Messages in the Cloud Pub/Sub format need to be exported to various formats for applications to consume them or import them into another data source. The following section explains the various options available for exporting a message in various formats. Create a new Pub/Sub topic in your project for this demo and add a subscriber to that topic. Note down the topic name and subscriber name for use in the following command. This demo uses pubsubTopic as its topic name and pubSubTopicSubscriber as its topic subscriber name.

Run the following command to publish a message to the intended topic in Google Cloud Pub/Sub. Replace Message Text and attribute in the message as per your project:

gcloud beta pubsub topics publish ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google BigQuery: The Definitive Guide

Google BigQuery: The Definitive Guide

Valliappa Lakshmanan, Jordan Tigani
Google BigQuery Analytics

Google BigQuery Analytics

Siddartha Naidu, Jordan Tigani

Publisher Resources

ISBN: 9781787288591Supplemental Content