querybook icon indicating copy to clipboard operation
querybook copied to clipboard

Global Templating + Last Partition Templating

Open czgu opened this issue 5 years ago • 1 comments

Add the ability for the user to define templating for themselves, when running queries, the owner's custom definition will be taken into consideration. These templates need to be able to be represented in text form for ease of sharing with others.

Add get the latest table partition for hive metastore and provide a default function that lets the user get the latest partition of a table via a function call. The signature should be something like

lastest_partition(table_name, pattern=None,)

All available functions and variables should be available to view/update somewhere near the query editor UI.

czgu avatar Jan 29 '21 18:01 czgu

image image

czgu avatar Feb 03 '21 21:02 czgu