Skip to content

Commit

Permalink
Add warning for query passthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Jessie212 authored and hashhar committed Apr 20, 2023
1 parent 65427ba commit 7e90112
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 0 deletions.
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 @@ -345,6 +345,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, query the ``example`` catalog and group and concatenate all
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, query the ``example`` catalog and use ``STRING_TO_MV`` and
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 @@ -440,6 +440,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 @@ -288,6 +288,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, query the ``example`` catalog and select the age of employees by
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 @@ -323,6 +323,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, query the ``example`` catalog and group and concatenate all
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, query the ``example`` catalog and 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, query the ``example`` catalog and 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, query the ``example`` catalog and select the top 10 nations by
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 @@ -348,6 +348,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, query the ``example`` catalog and select the top 10 percent of
Expand Down

0 comments on commit 7e90112

Please sign in to comment.