show - Teradata QueryGrid

Teradata® QueryGrid™ Guía de instalación y uso- 3.00

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Teradata QueryGrid
Release Number
3.00
Published
Marzo de 2023
ft:locale
es-ES
ft:lastEdition
2023-04-04
dita:mapPath
es-ES/dtm1676313130103.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-5991
Product Category
Analytical Ecosystem

Se puede llamar al método show() para ver un catálogo de todas las tablas no nativas (permanentes o temporales) creadas en el objeto de servidor externo actual (no se necesita conexión en remoto). Si se pasa un nombre de tabla no nativa permanente al método show(), se mostrará la sentencia CREATE TABLE completa para dicha tabla no nativa.

scala> s1.show

LINK: s2h.active
+-----------+--------------+------------+
|local_table|remote_table  |is_temporary|
+-----------+--------------+------------+
|nn2        |default.test  |true        |
|default.nn1|user1.players |false       |
+-----------+--------------+------------+
scala> s1.show("default.nn1")
+----------------------------------------------------------+
|createtab_stmt                                            |
+----------------------------------------------------------+
|CREATE TABLE `default`.`nn1` (`number` INT, `name` STRING)
USING com.teradata.querygrid.qgc.spark
OPTIONS (
  `serialization.format` '1',
  `version` 'active',
  `link` 's2h',
  `table` 'user1.players'
)                                                          |
+----------------------------------------------------------+