Przeglądaj źródła

HUE-9238 [design] Apache Phoenix SQL support

Romain 5 lat temu
rodzic
commit
007140a213
1 zmienionych plików z 43 dodań i 0 usunięć
  1. 43 0
      docs/designs/apache_phoenix.md

+ 43 - 0
docs/designs/apache_phoenix.md

@@ -0,0 +1,43 @@
+
+# A modern SQL Editor for Apache Phoenix
+
+## Background
+
+* https://blog.cloudera.com/apache-phoenix-for-cdh/
+* https://blog.cloudera.com/operational-database-accessibility/
+* http://gethue.com/sql-querying-apache-hbase-with-apache-phoenix/
+
+![Hue Phoenix Editor](https://cdn.gethue.com/uploads/2019/07/editor_phoenix_select.png)
+
+This document is about the Hue specific improvements and assumes a running Phoenix server is available.
+
+## Tasks
+
+The most crucial is to stabilize the querying API, improve the Editor assistant (Phoenix SQL Autocomplete) and make the full setup work out of the box.
+
+[ Phoenix <-> Hue <-> User Browser ]
+
+### API
+
+* SqlAchemy connector
+  * to ship
+  * to "battle test" ([pyPhoenix](https://github.com/Pirionfr/pyPhoenix#known-issues), reuse [DB 2.0 API](https://phoenix.apache.org/python.html) [PhoenixDB](https://github.com/apache/phoenix/tree/master/python)?)
+  * with Hue Editor API to polish ([dev reference](https://docs.gethue.com/developer/connectors/#sqlalchemy))
+  * all SQL supported?
+* Security support?
+* Install samples?
+
+### UI
+
+* Calcite SQL Autocomplete subset ([grammar](https://phoenix.apache.org/language/index.html) + [builtins](https://phoenix.apache.org/language/functions.html)) ([dev reference](https://docs.gethue.com/developer/parsers/))
+* Left SQL assist panel
+* Trim the semicolon `;`
+* Right panel UDF/Language references
+
+* HBase <-> Phoenix UX (simplify Phoenix onboarding, leverage current HBase integration)
+  * Existing HBase tables need to be mapped to views
+  * Tables are seeing as uppercase by Phoenix
+
+### Admin
+
+* CM CDP auto configuration of Hue properties (e.g. Phoenix service config)