Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(Completion): Support virtual tables such as subquery (#9610)
rebelice5def0c15e0d9
diff --git a/backend/plugin/parser/mysql/completion.go b/backend/plugin/parser/mysql/completion.goindex d885f75bd9..100aa64542 100644--- a/backend/plugin/parser/mysql/completion.go+++ b/backend/plugin/parser/mysql/completion.go@@ -2,6 +2,7 @@ package mysqlimport ("context"+ "fmt""sort""strings"@@ -195,12 +196,25 @@ func newSynonyms() map[int][]string {}}-type TableReference struct {+type TableReference interface {+ isTableReference()+}++type PhysicalTableReference struct {Database stringTable stringAlias string}+func (*PhysicalTableReference) isTableReference() {}++type VirtualTableReference struct {+ Table string+ Columns []string+}++func (*VirtualTableReference) isTableReference() {}+type Completer struct {ctx context.Contextcore *base.CodeCompletionCore@@ -213,10 +227,10 @@ type Completer struct {noSeparatorRequired map[int]bool// referencesStack is a hierarchical stack of table references.// We'll update the stack when we encounter a new FROM clauses.- referencesStack [][]*TableReference+ referencesStack [][]TableReference// references is the flattened table references.// It's helpful to look up the table reference.- references []*TableReference+ references []TableReference}func NewCompleter(ctx context.Context, statement string, caretLine int, caretOffset int, defaultDatabase string, metadata base.GetDatabaseMetadataFunc) *Completer {@@ -242,7 +256,7 @@ func (c *Completer) completion() ([]base.Candidate, error) {if caretIndex > 0 && !c.noSeparatorRequired[c.scanner.GetPreviousTokenType(false /* skipHidden */)] {caretIndex--}- c.referencesStack = append([][]*TableReference{{}}, c.referencesStack...)+ c.referencesStack = append([][]TableReference{{}}, c.referencesStack...)c.parser.Reset()// TODO: we can just skip the head of the caret statement.context := c.parser.Script()@@ -376,18 +390,20 @@ func (c *Completer) convertCandidates(candidates *base.CandidatesCollection) ([]viewEntries.insertViews(c, schemas)}case mysql.MySQLParserRULE_tableWild, mysql.MySQLParserRULE_columnRef:- schema, table, flags := c.determineSchemaTableQualifier()+ database, table, flags := c.determineSchemaTableQualifier()if flags&ObjectFlagsShowSchemas != 0 {schemaEntries.insertDatabases(c)}schemas := make(map[string]bool)- if len(schema) != 0 {- schemas[schema] = true+ if len(database) != 0 {+ schemas[database] = true} else if len(c.references) > 0 {for _, reference := range c.references {- if len(reference.Database) != 0 {- schemas[reference.Database] = true+ if physicalTable, ok := reference.(*PhysicalTableReference); ok {+ if len(physicalTable.Database) != 0 {+ schemas[physicalTable.Database] = true+ }}}}@@ -402,25 +418,37 @@ func (c *Completer) convertCandidates(candidates *base.CandidatesCollection) ([]viewEntries.insertViews(c, schemas)for _, reference := range c.references {- if (len(schema) == 0 && len(reference.Database) == 0) || schemas[reference.Database] {- if len(reference.Alias) == 0 {- tableEntries.Insert(base.Candidate{- Type: base.CandidateTypeTable,- Text: reference.Table,- })- } else {- tableEntries.Insert(base.Candidate{- Type: base.CandidateTypeTable,- Text: reference.Alias,- })+ switch reference := reference.(type) {+ case *PhysicalTableReference:+ if (len(database) == 0 && len(reference.Database) == 0) || schemas[reference.Database] {+ if len(reference.Alias) == 0 {+ tableEntries.Insert(base.Candidate{+ Type: base.CandidateTypeTable,+ Text: reference.Table,+ })+ } else {+ tableEntries.Insert(base.Candidate{+ Type: base.CandidateTypeTable,+ Text: reference.Alias,+ })+ }}+ case *VirtualTableReference:+ // User specified a database qualifier, so we don't show virtual tables.+ if len(database) > 0 {+ continue+ }+ tableEntries.Insert(base.Candidate{+ Type: base.CandidateTypeTable,+ Text: reference.Table,+ })}}}}if flags&ObjectFlagsShowColumns != 0 {- if schema == table { // Schema and table are equal if it's not clear if we see a schema or table qualifier.+ if database == table { // Schema and table are equal if it's not clear if we see a schema or table qualifier.schemas[c.defaultDatabase] = true}@@ -428,16 +456,39 @@ func (c *Completer) convertCandidates(candidates *base.CandidatesCollection) ([]if len(table) != 0 {tables[table] = true- // Could be an aliasfor _, reference := range c.references {- if strings.EqualFold(reference.Alias, table) {- tables[reference.Table] = true- schemas[reference.Database] = true+ switch reference := reference.(type) {+ case *PhysicalTableReference:+ // Could be an alias+ if strings.EqualFold(reference.Alias, table) {+ tables[reference.Table] = true+ schemas[reference.Database] = true+ }+ case *VirtualTableReference:+ // Could be a virtual table+ if strings.EqualFold(reference.Table, table) {+ for _, column := range reference.Columns {+ columnEntries.Insert(base.Candidate{+ Type: base.CandidateTypeColumn,+ Text: column,+ })+ }+ }}}} else if len(c.references) > 0 && candidate == mysql.MySQLParserRULE_columnRef {for _, reference := range c.references {- tables[reference.Table] = true+ switch reference := reference.(type) {+ case *PhysicalTableReference:+ tables[reference.Table] = true+ case *VirtualTableReference:+ for _, column := range reference.Columns {+ columnEntries.Insert(base.Candidate{+ Type: base.CandidateTypeColumn,+ Text: column,+ })+ }+ }}}@@ -648,7 +699,7 @@ func (c *Completer) collectLeadingTableReferences(caretIndex int, forTableAlterif c.scanner.GetTokenType() == mysql.MySQLLexerALTER_SYMBOL {c.scanner.SkipTokenSequence([]int{mysql.MySQLLexerALTER_SYMBOL, mysql.MySQLLexerTABLE_SYMBOL})- var reference TableReference+ var reference PhysicalTableReferencereference.Table = unquote(c.scanner.GetTokenText())if c.scanner.Forward(false /* skipHidden */) && c.scanner.IsTokenType(mysql.MySQLLexerDOT_SYMBOL) {reference.Database = reference.Table@@ -672,7 +723,7 @@ func (c *Completer) collectLeadingTableReferences(caretIndex int, forTableAlterswitch c.scanner.GetTokenType() {case mysql.MySQLLexerOPEN_PAR_SYMBOL:level++- c.referencesStack = append([][]*TableReference{{}}, c.referencesStack...)+ c.referencesStack = append([][]TableReference{{}}, c.referencesStack...)case mysql.MySQLLexerCLOSE_PAR_SYMBOL:if level == 0 {c.scanner.PopAndRestore()@@ -733,7 +784,7 @@ func (l *TableRefListener) ExitTableRef(ctx *mysql.TableRefContext) {}if !l.fromClauseMode || l.level == 0 {- reference := &TableReference{}+ reference := &PhysicalTableReference{}if ctx.QualifiedIdentifier() != nil {reference.Table = unquote(ctx.QualifiedIdentifier().Identifier().GetText())if ctx.QualifiedIdentifier().DotIdentifier() != nil {@@ -754,9 +805,51 @@ func (l *TableRefListener) ExitTableAlias(ctx *mysql.TableAliasContext) {if l.level == 0 && len(l.context.referencesStack) != 0 && len(l.context.referencesStack[0]) != 0 {// Appears after a single or derived table.- // Since derived tables can be very complex it is not possible here to determine possible columns for- // completion, hence we just walk over them and thus have no field where to store the found alias.- l.context.referencesStack[0][len(l.context.referencesStack[0])-1].Alias = unquote(ctx.Identifier().GetText())++ if _, ok := ctx.GetParent().(*mysql.DerivedTableContext); ok {+ // We are no need to set the alias for the derived table.+ // We handle the derived table in the EnterDerivedTable() methods.+ return+ }++ // We are in the single table.+ if physicalTable, ok := l.context.referencesStack[0][len(l.context.referencesStack[0])-1].(*PhysicalTableReference); ok {+ physicalTable.Alias = unquote(ctx.Identifier().GetText())+ }+ }+}++func (l *TableRefListener) EnterDerivedTable(ctx *mysql.DerivedTableContext) {+ if l.done {+ return+ }++ if l.level == 0 && len(l.context.referencesStack) > 0 && ctx.TableAlias() != nil {+ reference := &VirtualTableReference{+ Table: unquote(ctx.TableAlias().Identifier().GetText()),+ }++ if ctx.ColumnInternalRefList() != nil {+ for _, column := range ctx.ColumnInternalRefList().AllColumnInternalRef() {+ reference.Columns = append(reference.Columns, unquote(column.Identifier().GetText()))+ }+ } else {+ // User didn't specify the column list, so we should extract the column list from the select statement.+ // TODO(zp): GetQuerySpan doesn't support MySQL yet.+ if span, err := base.GetQuerySpan(+ l.context.ctx,+ store.Engine_MYSQL,+ fmt.Sprintf("SELECT * FROM %s;", ctx.GetParser().GetTokenStream().GetTextFromRuleContext(ctx.Subquery())),+ l.context.defaultDatabase,+ l.context.getMetadata,+ ); err == nil && len(span) == 1 {+ for _, column := range span[0].Results {+ reference.Columns = append(reference.Columns, column.Name)+ }+ }+ }++ l.context.referencesStack[0] = append(l.context.referencesStack[0], reference)}}@@ -768,7 +861,7 @@ func (l *TableRefListener) EnterSubquery(_ *mysql.SubqueryContext) {if l.fromClauseMode {l.level++} else {- l.context.referencesStack = append([][]*TableReference{{}}, l.context.referencesStack...)+ l.context.referencesStack = append([][]TableReference{{}}, l.context.referencesStack...)}}diff --git a/backend/plugin/parser/mysql/completion_test.go b/backend/plugin/parser/mysql/completion_test.goindex d7f2217d8e..bf7b9b09f7 100644--- a/backend/plugin/parser/mysql/completion_test.go+++ b/backend/plugin/parser/mysql/completion_test.go@@ -45,7 +45,7 @@ func TestCompletion(t *testing.T) {var filteredResult []base.Candidatefor _, r := range result {switch r.Type {- case base.CandidateTypeKeyword:+ case base.CandidateTypeKeyword, base.CandidateTypeFunction:continuedefault:filteredResult = append(filteredResult, r)diff --git a/backend/plugin/parser/mysql/test-data/test_completion.yaml b/backend/plugin/parser/mysql/test-data/test_completion.yamlindex 90740dd376..0dd8b9e84a 100644--- a/backend/plugin/parser/mysql/test-data/test_completion.yaml+++ b/backend/plugin/parser/mysql/test-data/test_completion.yaml@@ -1,3 +1,29 @@+- input: SELECT | FROM (SELECT c1 FROM t1) cc1(cc1c1)+ want:+ - text: db+ type: DATABASE+ - text: cc1+ type: TABLE+ - text: t1+ type: TABLE+ - text: t2+ type: TABLE+ - text: cc1c1+ type: COLUMN+ - text: v1+ type: VIEW+- input: SELECT | FROM (SELECT c1 FROM t1) cc1+ want:+ - text: db+ type: DATABASE+ - text: cc1+ type: TABLE+ - text: t1+ type: TABLE+ - text: t2+ type: TABLE+ - text: v1+ type: VIEW- input: SELECT * from t1 cc1 JOIN t2 on cc1.|want:- text: c1@@ -20,882 +46,6 @@type: VIEW- input: SELECT | FROM t1want:- - text: ABS()- type: FUNCTION- - text: ACOS()- type: FUNCTION- - text: ADDDATE()- type: FUNCTION- - text: ADDTIME()- type: FUNCTION- - text: AES_DECRYPT()- type: FUNCTION- - text: AES_ENCRYPT()- type: FUNCTION- - text: ANY_VALUE()- type: FUNCTION- - text: ASCII()- type: FUNCTION- - text: ASIN()- type: FUNCTION- - text: ATAN()- type: FUNCTION- - text: ATAN2()- type: FUNCTION- - text: AVG()- type: FUNCTION- - text: BENCHMARK()- type: FUNCTION- - text: BIN()- type: FUNCTION- - text: BIN_TO_UUID()- type: FUNCTION- - text: BIT_AND()- type: FUNCTION- - text: BIT_COUNT()- type: FUNCTION- - text: BIT_LENGTH()- type: FUNCTION- - text: BIT_OR()- type: FUNCTION- - text: BIT_XOR()- type: FUNCTION- - text: CAN_ACCESS_COLUMN()- type: FUNCTION- - text: CAN_ACCESS_DATABASE()- type: FUNCTION- - text: CAN_ACCESS_TABLE()- type: FUNCTION- - text: CAN_ACCESS_USER()- type: FUNCTION- - text: CAN_ACCESS_VIEW()- type: FUNCTION- - text: CAST()- type: FUNCTION- - text: CEIL()- type: FUNCTION- - text: CEILING()- type: FUNCTION- - text: CHAR()- type: FUNCTION- - text: CHARACTER_LENGTH()- type: FUNCTION- - text: CHARSET()- type: FUNCTION- - text: CHAR_LENGTH()- type: FUNCTION- - text: COALESCE()- type: FUNCTION- - text: COERCIBILITY()- type: FUNCTION- - text: COLLATION()- type: FUNCTION- - text: COMPRESS()- type: FUNCTION- - text: CONCAT()- type: FUNCTION- - text: CONCAT_WS()- type: FUNCTION- - text: CONNECTION_ID()- type: FUNCTION- - text: CONV()- type: FUNCTION- - text: CONVERT()- type: FUNCTION- - text: CONVERT_TZ()- type: FUNCTION- - text: COS()- type: FUNCTION- - text: COT()- type: FUNCTION- - text: COUNT()- type: FUNCTION- - text: CRC32()- type: FUNCTION- - text: CUME_DIST()- type: FUNCTION- - text: CURDATE()- type: FUNCTION- - text: CURRENT_DATE()- type: FUNCTION- - text: CURRENT_ROLE()- type: FUNCTION- - text: CURRENT_TIME()- type: FUNCTION- - text: CURRENT_TIMESTAMP()- type: FUNCTION- - text: CURRENT_USER()- type: FUNCTION- - text: CURTIME()- type: FUNCTION- - text: DATABASE()- type: FUNCTION- - text: DATE()- type: FUNCTION- - text: DATEDIFF()- type: FUNCTION- - text: DATE_ADD()- type: FUNCTION- - text: DATE_FORMAT()- type: FUNCTION- - text: DATE_SUB()- type: FUNCTION- - text: DAY()- type: FUNCTION- - text: DAYNAME()- type: FUNCTION- - text: DAYOFMONTH()- type: FUNCTION- - text: DAYOFWEEK()- type: FUNCTION- - text: DAYOFYEAR()- type: FUNCTION- - text: DEFAULT()- type: FUNCTION- - text: DEGREES()- type: FUNCTION- - text: DENSE_RANK()- type: FUNCTION- - text: ELT()- type: FUNCTION- - text: EXP()- type: FUNCTION- - text: EXPORT_SET()- type: FUNCTION- - text: EXTRACT()- type: FUNCTION- - text: ExtractValue()- type: FUNCTION- - text: FIELD()- type: FUNCTION- - text: FIND_IN_SET()- type: FUNCTION- - text: FIRST_VALUE()- type: FUNCTION- - text: FLOOR()- type: FUNCTION- - text: FORMAT()- type: FUNCTION- - text: FORMAT_BYTES()- type: FUNCTION- - text: FORMAT_PICO_TIME()- type: FUNCTION- - text: FOUND_ROWS()- type: FUNCTION- - text: FROM_BASE64()- type: FUNCTION- - text: FROM_DAYS()- type: FUNCTION- - text: FROM_UNIXTIME()- type: FUNCTION- - text: GET_DD_COLUMN_PRIVILEGES()- type: FUNCTION- - text: GET_DD_CREATE_OPTIONS()- type: FUNCTION- - text: GET_DD_INDEX_SUB_PART_LENGTH()- type: FUNCTION- - text: GET_FORMAT()- type: FUNCTION- - text: GET_LOCK()- type: FUNCTION- - text: GREATEST()- type: FUNCTION- - text: GROUPING()- type: FUNCTION- - text: GROUP_CONCAT()- type: FUNCTION- - text: GTID_SUBSET()- type: FUNCTION- - text: GTID_SUBTRACT()- type: FUNCTION- - text: GeomCollection()- type: FUNCTION- - text: GeometryCollection()- type: FUNCTION- - text: HEX()- type: FUNCTION- - text: HOUR()- type: FUNCTION- - text: ICU_VERSION()- type: FUNCTION- - text: IF()- type: FUNCTION- - text: IFNULL()- type: FUNCTION- - text: IN()- type: FUNCTION- - text: INET6_ATON()- type: FUNCTION- - text: INET6_NTOA()- type: FUNCTION- - text: INET_ATON()- type: FUNCTION- - text: INET_NTOA()- type: FUNCTION- - text: INSERT()- type: FUNCTION- - text: INSTR()- type: FUNCTION- - text: INTERNAL_AUTO_INCREMENT()- type: FUNCTION- - text: INTERNAL_AVG_ROW_LENGTH()- type: FUNCTION- - text: INTERNAL_CHECKSUM()- type: FUNCTION- - text: INTERNAL_CHECK_TIME()- type: FUNCTION- - text: INTERNAL_DATA_FREE()- type: FUNCTION- - text: INTERNAL_DATA_LENGTH()- type: FUNCTION- - text: INTERNAL_DD_CHAR_LENGTH()- type: FUNCTION- - text: INTERNAL_GET_COMMENT_OR_ERROR()- type: FUNCTION- - text: INTERNAL_GET_ENABLED_ROLE_JSON()- type: FUNCTION- - text: INTERNAL_GET_HOSTNAME()- type: FUNCTION- - text: INTERNAL_GET_USERNAME()- type: FUNCTION- - text: INTERNAL_GET_VIEW_WARNING_OR_ERROR()- type: FUNCTION- - text: INTERNAL_INDEX_COLUMN_CARDINALITY()- type: FUNCTION- - text: INTERNAL_INDEX_LENGTH()- type: FUNCTION- - text: INTERNAL_IS_ENABLED_ROLE()- type: FUNCTION- - text: INTERNAL_IS_MANDATORY_ROLE()- type: FUNCTION- - text: INTERNAL_KEYS_DISABLED()- type: FUNCTION- - text: INTERNAL_MAX_DATA_LENGTH()- type: FUNCTION- - text: INTERNAL_TABLE_ROWS()- type: FUNCTION- - text: INTERNAL_UPDATE_TIME()- type: FUNCTION- - text: INTERVAL()- type: FUNCTION- - text: ISNULL()- type: FUNCTION- - text: IS_FREE_LOCK()- type: FUNCTION- - text: IS_IPV4()- type: FUNCTION- - text: IS_IPV4_COMPAT()- type: FUNCTION- - text: IS_IPV4_MAPPED()- type: FUNCTION- - text: IS_IPV6()- type: FUNCTION- - text: IS_USED_LOCK()- type: FUNCTION- - text: IS_UUID()- type: FUNCTION- - text: JSON_ARRAY()- type: FUNCTION- - text: JSON_ARRAYAGG()- type: FUNCTION- - text: JSON_ARRAY_APPEND()- type: FUNCTION- - text: JSON_ARRAY_INSERT()- type: FUNCTION- - text: JSON_CONTAINS()- type: FUNCTION- - text: JSON_CONTAINS_PATH()- type: FUNCTION- - text: JSON_DEPTH()- type: FUNCTION- - text: JSON_EXTRACT()- type: FUNCTION- - text: JSON_INSERT()- type: FUNCTION- - text: JSON_KEYS()- type: FUNCTION- - text: JSON_LENGTH()- type: FUNCTION- - text: JSON_MERGE()- type: FUNCTION- - text: JSON_MERGE_PATCH()- type: FUNCTION- - text: JSON_MERGE_PRESERVE()- type: FUNCTION- - text: JSON_OBJECT()- type: FUNCTION- - text: JSON_OBJECTAGG()- type: FUNCTION- - text: JSON_OVERLAPS()- type: FUNCTION- - text: JSON_PRETTY()- type: FUNCTION- - text: JSON_QUOTE()- type: FUNCTION- - text: JSON_REMOVE()- type: FUNCTION- - text: JSON_REPLACE()- type: FUNCTION- - text: JSON_SCHEMA_VALID()- type: FUNCTION- - text: JSON_SCHEMA_VALIDATION_REPORT()- type: FUNCTION- - text: JSON_SEARCH()- type: FUNCTION- - text: JSON_SET()- type: FUNCTION- - text: JSON_STORAGE_FREE()- type: FUNCTION- - text: JSON_STORAGE_SIZE()- type: FUNCTION- - text: JSON_TABLE()- type: FUNCTION- - text: JSON_TYPE()- type: FUNCTION- - text: JSON_UNQUOTE()- type: FUNCTION- - text: JSON_VALID()- type: FUNCTION- - text: JSON_VALUE()- type: FUNCTION- - text: LAG()- type: FUNCTION- - text: LAST_INSERT_ID()- type: FUNCTION- - text: LAST_VALUE()- type: FUNCTION- - text: LCASE()- type: FUNCTION- - text: LEAD()- type: FUNCTION- - text: LEAST()- type: FUNCTION- - text: LEFT()- type: FUNCTION- - text: LENGTH()- type: FUNCTION- - text: LN()- type: FUNCTION- - text: LOAD_FILE()- type: FUNCTION- - text: LOCALTIME()- type: FUNCTION- - text: LOCALTIMESTAMP()- type: FUNCTION- - text: LOCATE()- type: FUNCTION- - text: LOG()- type: FUNCTION- - text: LOG10()- type: FUNCTION- - text: LOG2()- type: FUNCTION- - text: LOWER()- type: FUNCTION- - text: LPAD()- type: FUNCTION- - text: LTRIM()- type: FUNCTION- - text: LineString()- type: FUNCTION- - text: MAKEDATE()- type: FUNCTION- - text: MAKETIME()- type: FUNCTION- - text: MAKE_SET()- type: FUNCTION- - text: MASTER_POS_WAIT()- type: FUNCTION- - text: MATCH()- type: FUNCTION- - text: MAX()- type: FUNCTION- - text: MBRContains()- type: FUNCTION- - text: MBRCoveredBy()- type: FUNCTION- - text: MBRCovers()- type: FUNCTION- - text: MBRDisjoint()- type: FUNCTION- - text: MBREquals()- type: FUNCTION- - text: MBRIntersects()- type: FUNCTION- - text: MBROverlaps()- type: FUNCTION- - text: MBRTouches()- type: FUNCTION- - text: MBRWithin()- type: FUNCTION- - text: MD5()- type: FUNCTION- - text: MEMBER OF()- type: FUNCTION- - text: MICROSECOND()- type: FUNCTION- - text: MID()- type: FUNCTION- - text: MIN()- type: FUNCTION- - text: MINUTE()- type: FUNCTION- - text: MOD()- type: FUNCTION- - text: MONTH()- type: FUNCTION- - text: MONTHNAME()- type: FUNCTION- - text: MultiLineString()- type: FUNCTION- - text: MultiPoint()- type: FUNCTION- - text: MultiPolygon()- type: FUNCTION- - text: NAME_CONST()- type: FUNCTION- - text: NOT IN()- type: FUNCTION- - text: NOW()- type: FUNCTION- - text: NTH_VALUE()- type: FUNCTION- - text: NTILE()- type: FUNCTION- - text: NULLIF()- type: FUNCTION- - text: OCT()- type: FUNCTION- - text: OCTET_LENGTH()- type: FUNCTION- - text: ORD()- type: FUNCTION- - text: PERCENT_RANK()- type: FUNCTION- - text: PERIOD_ADD()- type: FUNCTION- - text: PERIOD_DIFF()- type: FUNCTION- - text: PI()- type: FUNCTION- - text: POSITION()- type: FUNCTION- - text: POW()- type: FUNCTION- - text: POWER()- type: FUNCTION- - text: PS_CURRENT_THREAD_ID()- type: FUNCTION- - text: PS_THREAD_ID()- type: FUNCTION- - text: Point()- type: FUNCTION- - text: Polygon()- type: FUNCTION- - text: QUARTER()- type: FUNCTION- - text: QUOTE()- type: FUNCTION- - text: RADIANS()- type: FUNCTION- - text: RAND()- type: FUNCTION- - text: RANDOM_BYTES()- type: FUNCTION- - text: RANK()- type: FUNCTION- - text: REGEXP_INSTR()- type: FUNCTION- - text: REGEXP_LIKE()- type: FUNCTION- - text: REGEXP_REPLACE()- type: FUNCTION- - text: REGEXP_SUBSTR()- type: FUNCTION- - text: RELEASE_ALL_LOCKS()- type: FUNCTION- - text: RELEASE_LOCK()- type: FUNCTION- - text: REPEAT()- type: FUNCTION- - text: REPLACE()- type: FUNCTION- - text: REVERSE()- type: FUNCTION- - text: RIGHT()- type: FUNCTION- - text: ROLES_GRAPHML()- type: FUNCTION- - text: ROUND()- type: FUNCTION- - text: ROW_COUNT()- type: FUNCTION- - text: ROW_NUMBER()- type: FUNCTION- - text: RPAD()- type: FUNCTION- - text: RTRIM()- type: FUNCTION- - text: SCHEMA()- type: FUNCTION- - text: SECOND()- type: FUNCTION- - text: SEC_TO_TIME()- type: FUNCTION- - text: SESSION_USER()- type: FUNCTION- - text: SHA()- type: FUNCTION- - text: SHA1()- type: FUNCTION- - text: SHA2()- type: FUNCTION- - text: SIGN()- type: FUNCTION- - text: SIN()- type: FUNCTION- - text: SLEEP()- type: FUNCTION- - text: SOUNDEX()- type: FUNCTION- - text: SOURCE_POS_WAIT()- type: FUNCTION- - text: SPACE()- type: FUNCTION- - text: SQRT()- type: FUNCTION- - text: STATEMENT_DIGEST()- type: FUNCTION- - text: STATEMENT_DIGEST_TEXT()- type: FUNCTION- - text: STD()- type: FUNCTION- - text: STDDEV()- type: FUNCTION- - text: STDDEV_POP()- type: FUNCTION- - text: STDDEV_SAMP()- type: FUNCTION- - text: STRCMP()- type: FUNCTION- - text: STR_TO_DATE()- type: FUNCTION- - text: ST_Area()- type: FUNCTION- - text: ST_AsBinary()- type: FUNCTION- - text: ST_AsGeoJSON()- type: FUNCTION- - text: ST_AsText()- type: FUNCTION- - text: ST_AsWKB()- type: FUNCTION- - text: ST_AsWKT()- type: FUNCTION- - text: ST_Buffer()- type: FUNCTION- - text: ST_Buffer_Strategy()- type: FUNCTION- - text: ST_Centroid()- type: FUNCTION- - text: ST_Collect()- type: FUNCTION- - text: ST_Contains()- type: FUNCTION- - text: ST_ConvexHull()- type: FUNCTION- - text: ST_Crosses()- type: FUNCTION- - text: ST_Difference()- type: FUNCTION- - text: ST_Dimension()- type: FUNCTION- - text: ST_Disjoint()- type: FUNCTION- - text: ST_Distance()- type: FUNCTION- - text: ST_Distance_Sphere()- type: FUNCTION- - text: ST_EndPoint()- type: FUNCTION- - text: ST_Envelope()- type: FUNCTION- - text: ST_Equals()- type: FUNCTION- - text: ST_ExteriorRing()- type: FUNCTION- - text: ST_FrechetDistance()- type: FUNCTION- - text: ST_GeoHash()- type: FUNCTION- - text: ST_GeomCollFromText()- type: FUNCTION- - text: ST_GeomCollFromTxt()- type: FUNCTION- - text: ST_GeomCollFromWKB()- type: FUNCTION- - text: ST_GeomFromGeoJSON()- type: FUNCTION- - text: ST_GeomFromText()- type: FUNCTION- - text: ST_GeomFromWKB()- type: FUNCTION- - text: ST_GeometryCollectionFromText()- type: FUNCTION- - text: ST_GeometryCollectionFromWKB()- type: FUNCTION- - text: ST_GeometryFromText()- type: FUNCTION- - text: ST_GeometryFromWKB()- type: FUNCTION- - text: ST_GeometryN()- type: FUNCTION- - text: ST_GeometryType()- type: FUNCTION- - text: ST_HausdorffDistance()- type: FUNCTION- - text: ST_InteriorRingN()- type: FUNCTION- - text: ST_Intersection()- type: FUNCTION- - text: ST_Intersects()- type: FUNCTION- - text: ST_IsClosed()- type: FUNCTION- - text: ST_IsEmpty()- type: FUNCTION- - text: ST_IsSimple()- type: FUNCTION- - text: ST_IsValid()- type: FUNCTION- - text: ST_LatFromGeoHash()- type: FUNCTION- - text: ST_Latitude()- type: FUNCTION- - text: ST_Length()- type: FUNCTION- - text: ST_LineFromText()- type: FUNCTION- - text: ST_LineFromWKB()- type: FUNCTION- - text: ST_LineInterpolatePoint()- type: FUNCTION- - text: ST_LineInterpolatePoints()- type: FUNCTION- - text: ST_LineStringFromText()- type: FUNCTION- - text: ST_LineStringFromWKB()- type: FUNCTION- - text: ST_LongFromGeoHash()- type: FUNCTION- - text: ST_Longitude()- type: FUNCTION- - text: ST_MLineFromText()- type: FUNCTION- - text: ST_MLineFromWKB()- type: FUNCTION- - text: ST_MPointFromText()- type: FUNCTION- - text: ST_MPointFromWKB()- type: FUNCTION- - text: ST_MPolyFromText()- type: FUNCTION- - text: ST_MPolyFromWKB()- type: FUNCTION- - text: ST_MakeEnvelope()- type: FUNCTION- - text: ST_MultiLineStringFromText()- type: FUNCTION- - text: ST_MultiLineStringFromWKB()- type: FUNCTION- - text: ST_MultiPointFromText()- type: FUNCTION- - text: ST_MultiPointFromWKB()- type: FUNCTION- - text: ST_MultiPolygonFromText()- type: FUNCTION- - text: ST_MultiPolygonFromWKB()- type: FUNCTION- - text: ST_NumGeometries()- type: FUNCTION- - text: ST_NumInteriorRing()- type: FUNCTION- - text: ST_NumInteriorRings()- type: FUNCTION- - text: ST_NumPoints()- type: FUNCTION- - text: ST_Overlaps()- type: FUNCTION- - text: ST_PointAtDistance()- type: FUNCTION- - text: ST_PointFromGeoHash()- type: FUNCTION- - text: ST_PointFromText()- type: FUNCTION- - text: ST_PointFromWKB()- type: FUNCTION- - text: ST_PointN()- type: FUNCTION- - text: ST_PolyFromText()- type: FUNCTION- - text: ST_PolyFromWKB()- type: FUNCTION- - text: ST_PolygonFromText()- type: FUNCTION- - text: ST_PolygonFromWKB()- type: FUNCTION- - text: ST_SRID()- type: FUNCTION- - text: ST_Simplify()- type: FUNCTION- - text: ST_StartPoint()- type: FUNCTION- - text: ST_SwapXY()- type: FUNCTION- - text: ST_SymDifference()- type: FUNCTION- - text: ST_Touches()- type: FUNCTION- - text: ST_Transform()- type: FUNCTION- - text: ST_Union()- type: FUNCTION- - text: ST_Validate()- type: FUNCTION- - text: ST_Within()- type: FUNCTION- - text: ST_X()- type: FUNCTION- - text: ST_Y()- type: FUNCTION- - text: SUBDATE()- type: FUNCTION- - text: SUBSTR()- type: FUNCTION- - text: SUBSTRING()- type: FUNCTION- - text: SUBSTRING_INDEX()- type: FUNCTION- - text: SUBTIME()- type: FUNCTION- - text: SUM()- type: FUNCTION- - text: SYSDATE()- type: FUNCTION- - text: SYSTEM_USER()- type: FUNCTION- - text: TAN()- type: FUNCTION- - text: TIME()- type: FUNCTION- - text: TIMEDIFF()- type: FUNCTION- - text: TIMESTAMP()- type: FUNCTION- - text: TIMESTAMPADD()- type: FUNCTION- - text: TIMESTAMPDIFF()- type: FUNCTION- - text: TIME_FORMAT()- type: FUNCTION- - text: TIME_TO_SEC()- type: FUNCTION- - text: TO_BASE64()- type: FUNCTION- - text: TO_DAYS()- type: FUNCTION- - text: TO_SECONDS()- type: FUNCTION- - text: TRIM()- type: FUNCTION- - text: TRUNCATE()- type: FUNCTION- - text: UCASE()- type: FUNCTION- - text: UNCOMPRESS()- type: FUNCTION- - text: UNCOMPRESSED_LENGTH()- type: FUNCTION- - text: UNHEX()- type: FUNCTION- - text: UNIX_TIMESTAMP()- type: FUNCTION- - text: UPPER()- type: FUNCTION- - text: USER()- type: FUNCTION- - text: UTC_DATE()- type: FUNCTION- - text: UTC_TIME()- type: FUNCTION- - text: UTC_TIMESTAMP()- type: FUNCTION- - text: UUID()- type: FUNCTION- - text: UUID_SHORT()- type: FUNCTION- - text: UUID_TO_BIN()- type: FUNCTION- - text: UpdateXML()- type: FUNCTION- - text: VALIDATE_PASSWORD_STRENGTH()- type: FUNCTION- - text: VALUES()- type: FUNCTION- - text: VARIANCE()- type: FUNCTION- - text: VAR_POP()- type: FUNCTION- - text: VAR_SAMP()- type: FUNCTION- - text: VERSION()- type: FUNCTION- - text: WAIT_FOR_EXECUTED_GTID_SET()- type: FUNCTION- - text: WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS()- type: FUNCTION- - text: WEEK()- type: FUNCTION- - text: WEEKDAY()- type: FUNCTION- - text: WEEKOFYEAR()- type: FUNCTION- - text: WEIGHT_STRING()- type: FUNCTION- - text: YEAR()- type: FUNCTION- - text: YEARWEEK()- type: FUNCTION- - text: asynchronous_connection_failover_add_managed()- type: FUNCTION- - text: asynchronous_connection_failover_add_source()- type: FUNCTION- - text: asynchronous_connection_failover_delete_managed()- type: FUNCTION- - text: asynchronous_connection_failover_delete_source()- type: FUNCTION- - text: asynchronous_connection_failover_reset()- type: FUNCTION- - text: group_replication_disable_member_action()- type: FUNCTION- - text: group_replication_enable_member_action()- type: FUNCTION- - text: group_replication_get_communication_protocol()- type: FUNCTION- - text: group_replication_get_write_concurrency()- type: FUNCTION- - text: group_replication_reset_member_actions()- type: FUNCTION- - text: group_replication_set_as_primary()- type: FUNCTION- - text: group_replication_set_communication_protocol()- type: FUNCTION- - text: group_replication_set_write_concurrency()- type: FUNCTION- - text: group_replication_switch_to_multi_primary_mode()- type: FUNCTION- - text: group_replication_switch_to_single_primary_mode()- type: FUNCTION- text: dbtype: DATABASE- text: t1@@ -908,882 +58,6 @@type: VIEW- input: SELECT | FROM t2 xwant:- - text: ABS()- type: FUNCTION- - text: ACOS()- type: FUNCTION- - text: ADDDATE()- type: FUNCTION- - text: ADDTIME()- type: FUNCTION- - text: AES_DECRYPT()- type: FUNCTION- - text: AES_ENCRYPT()- type: FUNCTION- - text: ANY_VALUE()- type: FUNCTION- - text: ASCII()- type: FUNCTION- - text: ASIN()- type: FUNCTION- - text: ATAN()- type: FUNCTION- - text: ATAN2()- type: FUNCTION- - text: AVG()- type: FUNCTION- - text: BENCHMARK()- type: FUNCTION- - text: BIN()- type: FUNCTION- - text: BIN_TO_UUID()- type: FUNCTION- - text: BIT_AND()- type: FUNCTION- - text: BIT_COUNT()- type: FUNCTION- - text: BIT_LENGTH()- type: FUNCTION- - text: BIT_OR()- type: FUNCTION- - text: BIT_XOR()- type: FUNCTION- - text: CAN_ACCESS_COLUMN()- type: FUNCTION- - text: CAN_ACCESS_DATABASE()- type: FUNCTION- - text: CAN_ACCESS_TABLE()- type: FUNCTION- - text: CAN_ACCESS_USER()- type: FUNCTION- - text: CAN_ACCESS_VIEW()- type: FUNCTION- - text: CAST()- type: FUNCTION- - text: CEIL()- type: FUNCTION- - text: CEILING()- type: FUNCTION- - text: CHAR()- type: FUNCTION- - text: CHARACTER_LENGTH()- type: FUNCTION- - text: CHARSET()- type: FUNCTION- - text: CHAR_LENGTH()- type: FUNCTION- - text: COALESCE()- type: FUNCTION- - text: COERCIBILITY()- type: FUNCTION- - text: COLLATION()- type: FUNCTION- - text: COMPRESS()- type: FUNCTION- - text: CONCAT()- type: FUNCTION- - text: CONCAT_WS()- type: FUNCTION- - text: CONNECTION_ID()- type: FUNCTION- - text: CONV()- type: FUNCTION- - text: CONVERT()- type: FUNCTION- - text: CONVERT_TZ()- type: FUNCTION- - text: COS()- type: FUNCTION- - text: COT()- type: FUNCTION- - text: COUNT()- type: FUNCTION- - text: CRC32()- type: FUNCTION- - text: CUME_DIST()- type: FUNCTION- - text: CURDATE()- type: FUNCTION- - text: CURRENT_DATE()- type: FUNCTION- - text: CURRENT_ROLE()- type: FUNCTION- - text: CURRENT_TIME()- type: FUNCTION- - text: CURRENT_TIMESTAMP()- type: FUNCTION- - text: CURRENT_USER()- type: FUNCTION- - text: CURTIME()- type: FUNCTION- - text: DATABASE()- type: FUNCTION- - text: DATE()- type: FUNCTION- - text: DATEDIFF()- type: FUNCTION- - text: DATE_ADD()- type: FUNCTION- - text: DATE_FORMAT()- type: FUNCTION- - text: DATE_SUB()- type: FUNCTION- - text: DAY()- type: FUNCTION- - text: DAYNAME()- type: FUNCTION- - text: DAYOFMONTH()- type: FUNCTION- - text: DAYOFWEEK()- type: FUNCTION- - text: DAYOFYEAR()- type: FUNCTION- - text: DEFAULT()- type: FUNCTION- - text: DEGREES()- type: FUNCTION- - text: DENSE_RANK()- type: FUNCTION- - text: ELT()- type: FUNCTION- - text: EXP()- type: FUNCTION- - text: EXPORT_SET()- type: FUNCTION- - text: EXTRACT()- type: FUNCTION- - text: ExtractValue()- type: FUNCTION- - text: FIELD()- type: FUNCTION- - text: FIND_IN_SET()- type: FUNCTION- - text: FIRST_VALUE()- type: FUNCTION- - text: FLOOR()- type: FUNCTION- - text: FORMAT()- type: FUNCTION- - text: FORMAT_BYTES()- type: FUNCTION- - text: FORMAT_PICO_TIME()- type: FUNCTION- - text: FOUND_ROWS()- type: FUNCTION- - text: FROM_BASE64()- type: FUNCTION- - text: FROM_DAYS()- type: FUNCTION- - text: FROM_UNIXTIME()- type: FUNCTION- - text: GET_DD_COLUMN_PRIVILEGES()- type: FUNCTION- - text: GET_DD_CREATE_OPTIONS()- type: FUNCTION- - text: GET_DD_INDEX_SUB_PART_LENGTH()- type: FUNCTION- - text: GET_FORMAT()- type: FUNCTION- - text: GET_LOCK()- type: FUNCTION- - text: GREATEST()- type: FUNCTION- - text: GROUPING()- type: FUNCTION- - text: GROUP_CONCAT()- type: FUNCTION- - text: GTID_SUBSET()- type: FUNCTION- - text: GTID_SUBTRACT()- type: FUNCTION- - text: GeomCollection()- type: FUNCTION- - text: GeometryCollection()- type: FUNCTION- - text: HEX()- type: FUNCTION- - text: HOUR()- type: FUNCTION- - text: ICU_VERSION()- type: FUNCTION- - text: IF()- type: FUNCTION- - text: IFNULL()- type: FUNCTION- - text: IN()- type: FUNCTION- - text: INET6_ATON()- type: FUNCTION- - text: INET6_NTOA()- type: FUNCTION- - text: INET_ATON()- type: FUNCTION- - text: INET_NTOA()- type: FUNCTION- - text: INSERT()- type: FUNCTION- - text: INSTR()- type: FUNCTION- - text: INTERNAL_AUTO_INCREMENT()- type: FUNCTION- - text: INTERNAL_AVG_ROW_LENGTH()- type: FUNCTION- - text: INTERNAL_CHECKSUM()- type: FUNCTION- - text: INTERNAL_CHECK_TIME()- type: FUNCTION- - text: INTERNAL_DATA_FREE()- type: FUNCTION- - text: INTERNAL_DATA_LENGTH()- type: FUNCTION- - text: INTERNAL_DD_CHAR_LENGTH()- type: FUNCTION- - text: INTERNAL_GET_COMMENT_OR_ERROR()- type: FUNCTION- - text: INTERNAL_GET_ENABLED_ROLE_JSON()- type: FUNCTION- - text: INTERNAL_GET_HOSTNAME()- type: FUNCTION- - text: INTERNAL_GET_USERNAME()- type: FUNCTION- - text: INTERNAL_GET_VIEW_WARNING_OR_ERROR()- type: FUNCTION- - text: INTERNAL_INDEX_COLUMN_CARDINALITY()- type: FUNCTION- - text: INTERNAL_INDEX_LENGTH()- type: FUNCTION- - text: INTERNAL_IS_ENABLED_ROLE()- type: FUNCTION- - text: INTERNAL_IS_MANDATORY_ROLE()- type: FUNCTION- - text: INTERNAL_KEYS_DISABLED()- type: FUNCTION- - text: INTERNAL_MAX_DATA_LENGTH()- type: FUNCTION- - text: INTERNAL_TABLE_ROWS()- type: FUNCTION- - text: INTERNAL_UPDATE_TIME()- type: FUNCTION- - text: INTERVAL()- type: FUNCTION- - text: ISNULL()- type: FUNCTION- - text: IS_FREE_LOCK()- type: FUNCTION- - text: IS_IPV4()- type: FUNCTION- - text: IS_IPV4_COMPAT()- type: FUNCTION- - text: IS_IPV4_MAPPED()- type: FUNCTION- - text: IS_IPV6()- type: FUNCTION- - text: IS_USED_LOCK()- type: FUNCTION- - text: IS_UUID()- type: FUNCTION- - text: JSON_ARRAY()- type: FUNCTION- - text: JSON_ARRAYAGG()- type: FUNCTION- - text: JSON_ARRAY_APPEND()- type: FUNCTION- - text: JSON_ARRAY_INSERT()- type: FUNCTION- - text: JSON_CONTAINS()- type: FUNCTION- - text: JSON_CONTAINS_PATH()- type: FUNCTION- - text: JSON_DEPTH()- type: FUNCTION- - text: JSON_EXTRACT()- type: FUNCTION- - text: JSON_INSERT()- type: FUNCTION- - text: JSON_KEYS()- type: FUNCTION- - text: JSON_LENGTH()- type: FUNCTION- - text: JSON_MERGE()- type: FUNCTION- - text: JSON_MERGE_PATCH()- type: FUNCTION- - text: JSON_MERGE_PRESERVE()- type: FUNCTION- - text: JSON_OBJECT()- type: FUNCTION- - text: JSON_OBJECTAGG()- type: FUNCTION- - text: JSON_OVERLAPS()- type: FUNCTION- - text: JSON_PRETTY()- type: FUNCTION- - text: JSON_QUOTE()- type: FUNCTION- - text: JSON_REMOVE()- type: FUNCTION- - text: JSON_REPLACE()- type: FUNCTION- - text: JSON_SCHEMA_VALID()- type: FUNCTION- - text: JSON_SCHEMA_VALIDATION_REPORT()- type: FUNCTION- - text: JSON_SEARCH()- type: FUNCTION- - text: JSON_SET()- type: FUNCTION- - text: JSON_STORAGE_FREE()- type: FUNCTION- - text: JSON_STORAGE_SIZE()- type: FUNCTION- - text: JSON_TABLE()- type: FUNCTION- - text: JSON_TYPE()- type: FUNCTION- - text: JSON_UNQUOTE()- type: FUNCTION- - text: JSON_VALID()- type: FUNCTION- - text: JSON_VALUE()- type: FUNCTION- - text: LAG()- type: FUNCTION- - text: LAST_INSERT_ID()- type: FUNCTION- - text: LAST_VALUE()- type: FUNCTION- - text: LCASE()- type: FUNCTION- - text: LEAD()- type: FUNCTION- - text: LEAST()- type: FUNCTION- - text: LEFT()- type: FUNCTION- - text: LENGTH()- type: FUNCTION- - text: LN()- type: FUNCTION- - text: LOAD_FILE()- type: FUNCTION- - text: LOCALTIME()- type: FUNCTION- - text: LOCALTIMESTAMP()- type: FUNCTION- - text: LOCATE()- type: FUNCTION- - text: LOG()- type: FUNCTION- - text: LOG10()- type: FUNCTION- - text: LOG2()- type: FUNCTION- - text: LOWER()- type: FUNCTION- - text: LPAD()- type: FUNCTION- - text: LTRIM()- type: FUNCTION- - text: LineString()- type: FUNCTION- - text: MAKEDATE()- type: FUNCTION- - text: MAKETIME()- type: FUNCTION- - text: MAKE_SET()- type: FUNCTION- - text: MASTER_POS_WAIT()- type: FUNCTION- - text: MATCH()- type: FUNCTION- - text: MAX()- type: FUNCTION- - text: MBRContains()- type: FUNCTION- - text: MBRCoveredBy()- type: FUNCTION- - text: MBRCovers()- type: FUNCTION- - text: MBRDisjoint()- type: FUNCTION- - text: MBREquals()- type: FUNCTION- - text: MBRIntersects()- type: FUNCTION- - text: MBROverlaps()- type: FUNCTION- - text: MBRTouches()- type: FUNCTION- - text: MBRWithin()- type: FUNCTION- - text: MD5()- type: FUNCTION- - text: MEMBER OF()- type: FUNCTION- - text: MICROSECOND()- type: FUNCTION- - text: MID()- type: FUNCTION- - text: MIN()- type: FUNCTION- - text: MINUTE()- type: FUNCTION- - text: MOD()- type: FUNCTION- - text: MONTH()- type: FUNCTION- - text: MONTHNAME()- type: FUNCTION- - text: MultiLineString()- type: FUNCTION- - text: MultiPoint()- type: FUNCTION- - text: MultiPolygon()- type: FUNCTION- - text: NAME_CONST()- type: FUNCTION- - text: NOT IN()- type: FUNCTION- - text: NOW()- type: FUNCTION- - text: NTH_VALUE()- type: FUNCTION- - text: NTILE()- type: FUNCTION- - text: NULLIF()- type: FUNCTION- - text: OCT()- type: FUNCTION- - text: OCTET_LENGTH()- type: FUNCTION- - text: ORD()- type: FUNCTION- - text: PERCENT_RANK()- type: FUNCTION- - text: PERIOD_ADD()- type: FUNCTION- - text: PERIOD_DIFF()- type: FUNCTION- - text: PI()- type: FUNCTION- - text: POSITION()- type: FUNCTION- - text: POW()- type: FUNCTION- - text: POWER()- type: FUNCTION- - text: PS_CURRENT_THREAD_ID()- type: FUNCTION- - text: PS_THREAD_ID()- type: FUNCTION- - text: Point()- type: FUNCTION- - text: Polygon()- type: FUNCTION- - text: QUARTER()- type: FUNCTION- - text: QUOTE()- type: FUNCTION- - text: RADIANS()- type: FUNCTION- - text: RAND()- type: FUNCTION- - text: RANDOM_BYTES()- type: FUNCTION- - text: RANK()- type: FUNCTION- - text: REGEXP_INSTR()- type: FUNCTION- - text: REGEXP_LIKE()- type: FUNCTION- - text: REGEXP_REPLACE()- type: FUNCTION- - text: REGEXP_SUBSTR()- type: FUNCTION- - text: RELEASE_ALL_LOCKS()- type: FUNCTION- - text: RELEASE_LOCK()- type: FUNCTION- - text: REPEAT()- type: FUNCTION- - text: REPLACE()- type: FUNCTION- - text: REVERSE()- type: FUNCTION- - text: RIGHT()- type: FUNCTION- - text: ROLES_GRAPHML()- type: FUNCTION- - text: ROUND()- type: FUNCTION- - text: ROW_COUNT()- type: FUNCTION- - text: ROW_NUMBER()- type: FUNCTION- - text: RPAD()- type: FUNCTION- - text: RTRIM()- type: FUNCTION- - text: SCHEMA()- type: FUNCTION- - text: SECOND()- type: FUNCTION- - text: SEC_TO_TIME()- type: FUNCTION- - text: SESSION_USER()- type: FUNCTION- - text: SHA()- type: FUNCTION- - text: SHA1()- type: FUNCTION- - text: SHA2()- type: FUNCTION- - text: SIGN()- type: FUNCTION- - text: SIN()- type: FUNCTION- - text: SLEEP()- type: FUNCTION- - text: SOUNDEX()- type: FUNCTION- - text: SOURCE_POS_WAIT()- type: FUNCTION- - text: SPACE()- type: FUNCTION- - text: SQRT()- type: FUNCTION- - text: STATEMENT_DIGEST()- type: FUNCTION- - text: STATEMENT_DIGEST_TEXT()- type: FUNCTION- - text: STD()- type: FUNCTION- - text: STDDEV()- type: FUNCTION- - text: STDDEV_POP()- type: FUNCTION- - text: STDDEV_SAMP()- type: FUNCTION- - text: STRCMP()- type: FUNCTION- - text: STR_TO_DATE()- type: FUNCTION- - text: ST_Area()- type: FUNCTION- - text: ST_AsBinary()- type: FUNCTION- - text: ST_AsGeoJSON()- type: FUNCTION- - text: ST_AsText()- type: FUNCTION- - text: ST_AsWKB()- type: FUNCTION- - text: ST_AsWKT()- type: FUNCTION- - text: ST_Buffer()- type: FUNCTION- - text: ST_Buffer_Strategy()- type: FUNCTION- - text: ST_Centroid()- type: FUNCTION- - text: ST_Collect()- type: FUNCTION- - text: ST_Contains()- type: FUNCTION- - text: ST_ConvexHull()- type: FUNCTION- - text: ST_Crosses()- type: FUNCTION- - text: ST_Difference()- type: FUNCTION- - text: ST_Dimension()- type: FUNCTION- - text: ST_Disjoint()- type: FUNCTION- - text: ST_Distance()- type: FUNCTION- - text: ST_Distance_Sphere()- type: FUNCTION- - text: ST_EndPoint()- type: FUNCTION- - text: ST_Envelope()- type: FUNCTION- - text: ST_Equals()- type: FUNCTION- - text: ST_ExteriorRing()- type: FUNCTION- - text: ST_FrechetDistance()- type: FUNCTION- - text: ST_GeoHash()- type: FUNCTION- - text: ST_GeomCollFromText()- type: FUNCTION- - text: ST_GeomCollFromTxt()- type: FUNCTION- - text: ST_GeomCollFromWKB()- type: FUNCTION- - text: ST_GeomFromGeoJSON()- type: FUNCTION- - text: ST_GeomFromText()- type: FUNCTION- - text: ST_GeomFromWKB()- type: FUNCTION- - text: ST_GeometryCollectionFromText()- type: FUNCTION- - text: ST_GeometryCollectionFromWKB()- type: FUNCTION- - text: ST_GeometryFromText()- type: FUNCTION- - text: ST_GeometryFromWKB()- type: FUNCTION- - text: ST_GeometryN()- type: FUNCTION- - text: ST_GeometryType()- type: FUNCTION- - text: ST_HausdorffDistance()- type: FUNCTION- - text: ST_InteriorRingN()- type: FUNCTION- - text: ST_Intersection()- type: FUNCTION- - text: ST_Intersects()- type: FUNCTION- - text: ST_IsClosed()- type: FUNCTION- - text: ST_IsEmpty()- type: FUNCTION- - text: ST_IsSimple()- type: FUNCTION- - text: ST_IsValid()- type: FUNCTION- - text: ST_LatFromGeoHash()- type: FUNCTION- - text: ST_Latitude()- type: FUNCTION- - text: ST_Length()- type: FUNCTION- - text: ST_LineFromText()- type: FUNCTION- - text: ST_LineFromWKB()- type: FUNCTION- - text: ST_LineInterpolatePoint()- type: FUNCTION- - text: ST_LineInterpolatePoints()- type: FUNCTION- - text: ST_LineStringFromText()- type: FUNCTION- - text: ST_LineStringFromWKB()- type: FUNCTION- - text: ST_LongFromGeoHash()- type: FUNCTION- - text: ST_Longitude()- type: FUNCTION- - text: ST_MLineFromText()- type: FUNCTION- - text: ST_MLineFromWKB()- type: FUNCTION- - text: ST_MPointFromText()- type: FUNCTION- - text: ST_MPointFromWKB()- type: FUNCTION- - text: ST_MPolyFromText()- type: FUNCTION- - text: ST_MPolyFromWKB()- type: FUNCTION- - text: ST_MakeEnvelope()- type: FUNCTION- - text: ST_MultiLineStringFromText()- type: FUNCTION- - text: ST_MultiLineStringFromWKB()- type: FUNCTION- - text: ST_MultiPointFromText()- type: FUNCTION- - text: ST_MultiPointFromWKB()- type: FUNCTION- - text: ST_MultiPolygonFromText()- type: FUNCTION- - text: ST_MultiPolygonFromWKB()- type: FUNCTION- - text: ST_NumGeometries()- type: FUNCTION- - text: ST_NumInteriorRing()- type: FUNCTION- - text: ST_NumInteriorRings()- type: FUNCTION- - text: ST_NumPoints()- type: FUNCTION- - text: ST_Overlaps()- type: FUNCTION- - text: ST_PointAtDistance()- type: FUNCTION- - text: ST_PointFromGeoHash()- type: FUNCTION- - text: ST_PointFromText()- type: FUNCTION- - text: ST_PointFromWKB()- type: FUNCTION- - text: ST_PointN()- type: FUNCTION- - text: ST_PolyFromText()- type: FUNCTION- - text: ST_PolyFromWKB()- type: FUNCTION- - text: ST_PolygonFromText()- type: FUNCTION- - text: ST_PolygonFromWKB()- type: FUNCTION- - text: ST_SRID()- type: FUNCTION- - text: ST_Simplify()- type: FUNCTION- - text: ST_StartPoint()- type: FUNCTION- - text: ST_SwapXY()- type: FUNCTION- - text: ST_SymDifference()- type: FUNCTION- - text: ST_Touches()- type: FUNCTION- - text: ST_Transform()- type: FUNCTION- - text: ST_Union()- type: FUNCTION- - text: ST_Validate()- type: FUNCTION- - text: ST_Within()- type: FUNCTION- - text: ST_X()- type: FUNCTION- - text: ST_Y()- type: FUNCTION- - text: SUBDATE()- type: FUNCTION- - text: SUBSTR()- type: FUNCTION- - text: SUBSTRING()- type: FUNCTION- - text: SUBSTRING_INDEX()- type: FUNCTION- - text: SUBTIME()- type: FUNCTION- - text: SUM()- type: FUNCTION- - text: SYSDATE()- type: FUNCTION- - text: SYSTEM_USER()- type: FUNCTION- - text: TAN()- type: FUNCTION- - text: TIME()- type: FUNCTION- - text: TIMEDIFF()- type: FUNCTION- - text: TIMESTAMP()- type: FUNCTION- - text: TIMESTAMPADD()- type: FUNCTION- - text: TIMESTAMPDIFF()- type: FUNCTION- - text: TIME_FORMAT()- type: FUNCTION- - text: TIME_TO_SEC()- type: FUNCTION- - text: TO_BASE64()- type: FUNCTION- - text: TO_DAYS()- type: FUNCTION- - text: TO_SECONDS()- type: FUNCTION- - text: TRIM()- type: FUNCTION- - text: TRUNCATE()- type: FUNCTION- - text: UCASE()- type: FUNCTION- - text: UNCOMPRESS()- type: FUNCTION- - text: UNCOMPRESSED_LENGTH()- type: FUNCTION- - text: UNHEX()- type: FUNCTION- - text: UNIX_TIMESTAMP()- type: FUNCTION- - text: UPPER()- type: FUNCTION- - text: USER()- type: FUNCTION- - text: UTC_DATE()- type: FUNCTION- - text: UTC_TIME()- type: FUNCTION- - text: UTC_TIMESTAMP()- type: FUNCTION- - text: UUID()- type: FUNCTION- - text: UUID_SHORT()- type: FUNCTION- - text: UUID_TO_BIN()- type: FUNCTION- - text: UpdateXML()- type: FUNCTION- - text: VALIDATE_PASSWORD_STRENGTH()- type: FUNCTION- - text: VALUES()- type: FUNCTION- - text: VARIANCE()- type: FUNCTION- - text: VAR_POP()- type: FUNCTION- - text: VAR_SAMP()- type: FUNCTION- - text: VERSION()- type: FUNCTION- - text: WAIT_FOR_EXECUTED_GTID_SET()- type: FUNCTION- - text: WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS()- type: FUNCTION- - text: WEEK()- type: FUNCTION- - text: WEEKDAY()- type: FUNCTION- - text: WEEKOFYEAR()- type: FUNCTION- - text: WEIGHT_STRING()- type: FUNCTION- - text: YEAR()- type: FUNCTION- - text: YEARWEEK()- type: FUNCTION- - text: asynchronous_connection_failover_add_managed()- type: FUNCTION- - text: asynchronous_connection_failover_add_source()- type: FUNCTION- - text: asynchronous_connection_failover_delete_managed()- type: FUNCTION- - text: asynchronous_connection_failover_delete_source()- type: FUNCTION- - text: asynchronous_connection_failover_reset()- type: FUNCTION- - text: group_replication_disable_member_action()- type: FUNCTION- - text: group_replication_enable_member_action()- type: FUNCTION- - text: group_replication_get_communication_protocol()- type: FUNCTION- - text: group_replication_get_write_concurrency()- type: FUNCTION- - text: group_replication_reset_member_actions()- type: FUNCTION- - text: group_replication_set_as_primary()- type: FUNCTION- - text: group_replication_set_communication_protocol()- type: FUNCTION- - text: group_replication_set_write_concurrency()- type: FUNCTION- - text: group_replication_switch_to_multi_primary_mode()- type: FUNCTION- - text: group_replication_switch_to_single_primary_mode()- type: FUNCTION- text: dbtype: DATABASE- text: t1