AUX (Auxiliary)

The AUX schema contains helpful tables for a variety of common tasks:

List all the queries saved by the trusted users

SAVEDQUERIES
ColumnIDNAMEAUTHORMODIFIEDONDESCRIPTIONQUERY
TypeBIGINTVARCHARVARCHARTIMESTAMPVARCHARVARCHAR
Indexx
x



It allows listing all the users'  saved queries and search by ID or AUTHOR.


Example:

select * from AUX.SAVEDQUERIES where AUTHOR = 'admin'


IDNAMEAUTHORMODIFIEDONDESCRIPTIONQUERY
364foldersadmin2020-01-29 19:53:05.633
SELECT * FROM ZEPHYR.CYCLES c join ZEPHYR.CYCLEFOLDERS f on f.PROJECTID = c.PROJECTID and f.VERSIONID = c.VERSIONID and f.CYCLEID = c.ID where PROJECTKEY = 'MSP'
365cyclesadmin2020-01-28 22:57:53.234
SELECT * FROM ZEPHYR.CYCLES where projectkey = 'MSP'


Convert strings into rows

SPLIT
ColumnOUTPUTINPUTREGEXP
TypeVARCHARVARCHARVARCHAR
Index
xx

This auxiliay table accepts a string as INPUT and a REGEXP expression and returns one record per result.

Ex:

SELECT 
  OUTPUT 
FROM 
  AUX.SPLIT 
WHERE 
  INPUT = 'Hello, World' 
    AND
  REGEXP =','


OUTPUT
Hello
World

Note: Please read the Java String.split() function documentation for more details.