ViewRepresentation - AWS Glue

ViewRepresentation

A structure that contains the dialect of the view, and the query that defines the view.

Contents

Dialect

The dialect of the query engine.

Type: String

Valid Values: REDSHIFT | ATHENA | SPARK

Required: No

DialectVersion

The version of the dialect of the query engine. For example, 3.0.0.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: No

IsStale

Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.

Type: Boolean

Required: No

ValidationConnection

The name of the connection to be used to validate the specific representation of the view.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*

Required: No

ViewExpandedText

The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example:

  • Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1

Type: String

Length Constraints: Maximum length of 409600.

Required: No

ViewOriginalText

The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.

Type: String

Length Constraints: Maximum length of 409600.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: