CatalogDataSourceService.

scan_sql

scan_sql( data_source_id: str, sql_request: ScanSqlRequest ) -> ScanSqlResponse

Analyze SELECT SQL query in a given request.

Return description of SQL result-set as list of column names with GoodData data types and list of example data returned by SELECT query.

Parameters

nametypedescription
data_source_idstrData Source identification string. e.g. "demo"
sql_requestScanSqlRequestSELECT SQL query to analyze

Returns

typedescription
ScanSqlResponseSELECT query analysis result