Skip to content

Commit

Permalink
Document sqlserver aggregate function pushdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua authored and findepi committed Sep 22, 2020
1 parent 5f9d7ae commit 0701225
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions presto-docs/src/main/sphinx/connector/sqlserver.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Configuration

The connector can query a single database on an SQL server instance. Create a
catalog properties file that specifies the SQL server connector by setting the
``connector.name`` to ``sqlserver``.
``connector.name`` to ``sqlserver``.

For example, to access a database as ``sqlserverdb``, create the file
``etc/catalog/sqlserverdb.properties``. Replace the connection properties as
Expand All @@ -29,14 +29,14 @@ Multiple SQL Server Databases or Servers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

The SQL Server connector can't access more than one database using a single
catalog.
catalog.

If you have multiple databases, or want to access multiple instances
of SQL Server, you need to configure one catalog for each instance.

To add another catalog:

- Add another properties file to ``etc/catalog``
- Add another properties file to ``etc/catalog``
- Save it with a different name that ends in ``.properties``

For example, if you name the property file ``sales.properties``, Presto uses the
Expand Down Expand Up @@ -70,6 +70,20 @@ Finally, you can query the ``clicks`` table in the ``web`` schema::
If you used a different name for your catalog properties file, use
that catalog name instead of ``sqlserver`` in the above examples.

.. _sqlserver-pushdown:

Pushdown
--------

The connector supports :doc:`pushdown </optimizer/pushdown>` for processing the
following aggregate functions:

* :func:`avg`
* :func:`count`
* :func:`max`
* :func:`min`
* :func:`sum`

Limitations
-----------

Expand Down

0 comments on commit 0701225

Please sign in to comment.