QueryDocument 2025.3.28.13-SNAPSHOT

BUNDLE

com.snowflake.openflow.runtime | runtime-document-layout-nar

DESCRIPTION

Evaluates a SQL-like query against the incoming Openflow Document JSON, producing the results on the outgoing FlowFile.This can be used to select specific elements, or to route the document based on the query results.One or more queries may be specified as user-defined properties.

TAGS

document, dsl, filter, json, openflow, query, relationships, route, sql, unstructured

INPUT REQUIREMENT

Supports Sensitive Dynamic Properties

false

RELATIONSHIPS

NAME

DESCRIPTION

failure

Any incoming FlowFile that fails to process is routed to this Relationship

unmatched

If the incoming document does not match any of the specified queries, it is routed to this Relationship

original

The incoming FlowFile is routed to this Relationship if any of the specified queries match. This FlowFile will be updated with attributes appropriate for use with MergeDocumentElements.

WRITES ATTRIBUTES

NAME

DESCRIPTION

mime.type

The MIME type is set to ‘application/json’ if multiple elements are selected. Otherwise, it is set to the appropriate MIME type, depending on the type of element selected. For example, it may be text/plain or image/png.

container.scope

The scope of the container is set to DOCUMENT for the JSON Document, TABLE for tables, and FIGURE for any figures/images identified

section.title

The title of the section containing the selected element, if it is available

document.id

A unique UUID for the document

fragment.index

The index of the fragment

fragment.count

The total number of fragments

SEE ALSO

Language: English