Strategy ONE
Import Data from a Database or Hadoop by Typing a Query
You can import data from a database or Hadoop by writing your own freeform script, or query, to retrieve data from the source.
You can import data from a database using SQL, from third-party web services using XQuery or from Hadoop using HiveQL.
The query prefixes #legacySQL and #standardSQL:
- Are not case-sensitive.
- Must precede the query.
- Must be separated from the query by a newline character.
- Create a document or open an existing one.
- Choose Data > Add Dataset.
- Click Add External Data.
- Select a database type. To import data without specifying a database type, click Databases.
- Select Type a Query and click Next.
- Click on a data source/project from the Data Sources pane.
- If your data source/project supports namespaces, select a namespace from the Namespace drop-down.
- To view the last time the database's tables and columns were cached, hover over the Information icon
next to Available Tables. - Double-click the tables you want to import.
- Make changes to the query.
- Click Finish.
- Click Connect Live or Import as an In-memory Dataset.
- Click Save.
