Dataflow API . projects . locations . sql

Instance Methods

close()

Close httplib2 connections.

validate(projectId, location, query=None, x__xgafv=None)

Validates a GoogleSQL query for Cloud Dataflow syntax. Will always confirm the given query parses correctly, and if able to look up schema information from DataCatalog, will validate that the query analyzes properly as well.

Method Details

close()
Close httplib2 connections.
validate(projectId, location, query=None, x__xgafv=None)
Validates a GoogleSQL query for Cloud Dataflow syntax. Will always confirm the given query parses correctly, and if able to look up schema information from DataCatalog, will validate that the query analyzes properly as well.

Args:
  projectId: string, Required. The ID of the Cloud Platform project that the job belongs to. (required)
  location: string, The [regional endpoint] (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to which to direct the request. (required)
  query: string, The sql query to validate.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to the validation request.
  "errorMessage": "A String", # Will be empty if validation succeeds.
  "queryInfo": { # Information about a validated query. # Information about the validated query. Not defined if validation fails.
    "queryProperty": [ # Includes an entry for each satisfied QueryProperty.
      "A String",
    ],
  },
}