Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning for query passthrough #15562

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/bigquery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ processed by BigQuery. This can be useful for accessing native features which ar
not available in Trino or for improving query performance in situations where
running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

For example, group and concatenate all employee IDs by manager ID::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/druid.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ processed in Druid. This can be useful for accessing native features which are
not available in Trino or for improving query performance in situations where
running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

As an example, use ``STRING_TO_MV`` and ``MV_LENGTH`` from
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/elasticsearch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ This can be useful for accessing native features which are not available in
Trino or for improving query performance in situations where running a query
natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

The ``raw_query`` function requires three parameters:
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/mariadb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ processed in MariaDB. This can be useful for accessing native features which are
not available in Trino or for improving query performance in situations where
running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

As an example, select the age of employees by using ``TIMESTAMPDIFF`` and
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/mysql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ processed in MySQL. This can be useful for accessing native features which are
not available in Trino or for improving query performance in situations where
running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

For example, group and concatenate all employee IDs by manager ID::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/oracle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ processed in Oracle. This can be useful for accessing native features which are
not available in Trino or for improving query performance in situations where
running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

As a simple example, to select an entire table::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/postgresql.rst
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ processed in PostgreSQL. This can be useful for accessing native features which
are not available in Trino or for improving query performance in situations
where running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

As a simple example, to select an entire table::
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The native query passed to the underlying data source is required to return a
table as a result set. Only the data source performs validation or security
checks for these queries using its own configuration. Trino does not perform
these tasks. Only use passthrough queries to read data.
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/redshift.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ processed in Redshift. This can be useful for accessing native features which
are not implemented in Trino or for improving query performance in situations
where running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

For example, select the top 10 nations by population::
Expand Down
2 changes: 2 additions & 0 deletions docs/src/main/sphinx/connector/sqlserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ processed in SQL Server. This can be useful for accessing native features which
are not implemented in Trino or for improving query performance in situations
where running a query natively may be faster.

.. include:: query-passthrough-warning.fragment

.. include:: polymorphic-table-function-ordering.fragment

For example, select the top 10 percent of nations by population::
Expand Down