Request Processing - Teradata Vantage - Analytics Database

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
gtm1628096154303.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dsm1472253642401
lifecycle
latest
Product Category
Teradata Vantageā„¢

SQL is the language you use to make requests of Vantage. That is, you use SQL to query Vantage.

The SQL parser handles incoming SQL requests in the following sequence:
  1. If the Parser finds the request in the Request cache, it does the following:
    1. Reuses the plastic steps in the cache and passes them to gncApply. (Plastic steps are directives to the database management system that do not contain data values.)
    2. Goes to step 4 and then to step 8.
  2. The Syntaxer checks the syntax of the request for errors.

    If there are no errors, the Syntaxer converts the request to a parse tree and passes it to the Resolver.

    If there are errors, the Syntaxer passes an error message back to the requestor and stops.

  3. The Resolver adds information from the Data Dictionary (or a cached copy of the information) to convert database, table, view, stored procedure, and macro names to internal identifiers.
  4. The security module checks privileges in the Data Dictionary.

    If the privileges are valid, the Security module passes the request to the Optimizer.

    If the privileges are invalid, the Security module aborts the request and passes an error message and stops.

  5. The Optimizer determines the most effective way to implement the SQL request.
  6. The Optimizer scans the request to determine where to put locks.
  7. The Optimizer passes the optimized parse tree to the Generator.
  8. The Generator transforms the optimized parse tree into plastic steps, caches the steps if appropriate, and passes them to gncApply.
  9. gncApply binds any parameterized data into the plastic steps and transforms the plastic steps into concrete steps.

    Concrete steps are directives to the AMPs that contain any needed user- or session-specific values and any needed data parcels.

  10. gncApply passes the concrete steps to the Dispatcher.