Skip to main content

MD_GET_FLIGHT

Preview
This feature is in preview and is subject to change.

Returns the FlightSummary fields for a single Flight. For version-specific content (source code, requirements, config), use MD_GET_FLIGHT_VERSION.

Syntax

SELECT * FROM MD_GET_FLIGHT(flight_id := '<flight_id>');

Parameters

ParameterTypeRequiredDescription
flight_idUUIDYesIdentifier of the Flight.

Return columns

ColumnTypeDescription
flight_idUUIDThe Flight identifier.
flight_nameVARCHARThe current name.
schedule_cronVARCHARThe current cron expression, or NULL for on-demand only.
statusVARCHARSchedule status (for example, JOB_STATUS_ACTIVE).
current_versionINTEGERThe latest version number.
created_atTIMESTAMP WITH TIME ZONECreation timestamp.
updated_atTIMESTAMP WITH TIME ZONELast update timestamp.

Examples

SELECT flight_id, flight_name, schedule_cron, current_version
FROM MD_GET_FLIGHT(flight_id := '80000000-0000-0000-0000-000000000001');