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 committed Apr 19, 2023
1 parent 7399e9e commit a133f47
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 @@ -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

0 comments on commit a133f47

Please sign in to comment.