Recently Teradata released the new version of Presto - 157t (Teradata’s certified version of open source Presto). It is based on 0.157 regular version of Presto and contains features which are not yet available there.
In my opinion these are the most interesting among the new features (comparing to 0.157):
- connector statistics - connector is now able to provide table data statistics and hive connector it has implemented. You can browse table statistics with the following:
presto:tiny> show stats nation; column_name | row_count -------------+----------- NULL | 25.0 (1 row)
Notice that depending on the way you access table (like projection or filter predicates) the table statistics may change, so to see what statistics table has for particular usage you may want to run:
presto:tiny> show stats FOR (SELECT nationkey, regionkey FROM nation WHERE nationkey > 3); column_name | row_count -------------+----------- NULL | 25.0 (1 row)
Here you could find more information about table statistics.
- Automatic join distribution
This features leverages table statistics. Smaller table could be selected to be replicated automatically. Notice that this is not enabled by default, to turn it on you need to run:
presto:tiny> SET SESSION join_distribution_type = 'automatic';
Go to this page to find more details about automatic join distribution.
For example in TPC-H Q1, which is heavily using long
DECIMAL type, this speeds up from 1.613s (on
DECIMAL) to 0.342s (on fast
DECIMAL) - this is 4.7x speedup!
DECIMAL is fast is so fast? I hope that answer to this will find a place on this blog in the near future.
- LDAP authentication
Presto can be configured to enable frontend LDAP authentication over HTTPS for clients, such as the Presto CLI, or the JDBC and ODBC drivers. More details can be found here - LDAP authentication.
- Broader SQL coverage
Well known benchmarks like TPC-H and TPC-DS are eligible to be executed without any major (disallowed by benchmark specification) query modification.
- For more, please see the links at the bottom
Share onTwitter Facebook Google+ LinkedIn
Leave a Comment
Your email address will not be published. Required fields are marked *