Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Google BigQuery

You're reading from   Learning Google BigQuery A beginner's guide to mining massive datasets through interactive analysis

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781787288591
Length 264 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Eric Brown Eric Brown
Author Profile Icon Eric Brown
Eric Brown
Thirukkumaran Haridass Thirukkumaran Haridass
Author Profile Icon Thirukkumaran Haridass
Thirukkumaran Haridass
Mikhail Berlyant Mikhail Berlyant
Author Profile Icon Mikhail Berlyant
Mikhail Berlyant
Arrow right icon
View More author details
Toc

Table of Contents (9) Chapters Close

Preface 1. Google Cloud and Google BigQuery 2. Google Cloud SDK FREE CHAPTER 3. Google BigQuery Data Types 4. BigQuery SQL Basic 5. BigQuery SQL Advanced 6. Google BigQuery API 7. Visualizing BigQuery Data 8. Google Cloud Pub/Sub

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 pubsubTopic --message "Message Text" --attribute="EmployeeID=20,FirstName=Vinod,LastName=Kumar,DateOfJoining=2016-02-16...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime