Querying CLP-compressed logs with SQL via Presto

How we implemented a CLP connector for Presto, allowing users to query their CLP-compressed logs through Presto using SQL.