create Method | Spark SQL Initiator Connector | QueryGrid - create - Teradata QueryGrid

QueryGridâ„¢ Installation and User Guide - 3.08

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Teradata QueryGrid
Release Number
3.08
Publication Date
July 2025
Content Type
Administration
Configuration
Installation
User Guide
Publication ID
B035-5991-065K
ft:locale
en-US
ft:lastEdition
2025-07-30
dita:mapPath
tca1747267140087.ditamap
dita:ditavalPath
ft:empty
ft:sourceId
dita
dita:id
lxg1591800469257
Product Category
Analytical Ecosystem

You can use the create method to create non-native tables (permanent or temporary) to represent target tables. If the non-native table name is in the form of db.tb1 (default.nn1 in the example), a permanent non-native table is created. If the database is not part of the non-native name, a temporary non-native table is created (nn2 in the example). Temporary tables in Spark SQL only exist during the current session and cannot be associated with a database.

The following example shows the Spark SQL initiator using the CREATE statement to create non-native tables:
scala> s1.create("default.nn1","user1.players")

scala> s1.create("nn2","default.test")