From 0701225c78b2dbf012c0b510935abf7f8d21518d Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Mon, 21 Sep 2020 09:13:16 -0700 Subject: [PATCH] Document sqlserver aggregate function pushdown --- .../src/main/sphinx/connector/sqlserver.rst | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/presto-docs/src/main/sphinx/connector/sqlserver.rst b/presto-docs/src/main/sphinx/connector/sqlserver.rst index cdd6c0161ccc..457d1db7afcd 100644 --- a/presto-docs/src/main/sphinx/connector/sqlserver.rst +++ b/presto-docs/src/main/sphinx/connector/sqlserver.rst @@ -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 @@ -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 @@ -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 ` for processing the +following aggregate functions: + +* :func:`avg` +* :func:`count` +* :func:`max` +* :func:`min` +* :func:`sum` + Limitations -----------