mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-09 23:40:05 +00:00
* fix (profiler): oracle profiler datatype error * fix (profiler): linting * fix: reorder connection type to default to db schema
This commit is contained in:
parent
903209bc70
commit
41ce2406a4
@ -60,6 +60,13 @@ def _(element, compiler, **kw):
|
|||||||
return f"SUM({proc})"
|
return f"SUM({proc})"
|
||||||
|
|
||||||
|
|
||||||
|
@compiles(SumFn, Dialects.Oracle)
|
||||||
|
def _(element, compiler, **kw):
|
||||||
|
"""Oracle casting"""
|
||||||
|
proc = compiler.process(element.clauses, **kw)
|
||||||
|
return f"SUM(CAST({proc} AS NUMBER))"
|
||||||
|
|
||||||
|
|
||||||
@compiles(SumFn, Dialects.IbmDbSa)
|
@compiles(SumFn, Dialects.IbmDbSa)
|
||||||
@compiles(SumFn, Dialects.Db2)
|
@compiles(SumFn, Dialects.Db2)
|
||||||
def _(element, compiler, **kw):
|
def _(element, compiler, **kw):
|
||||||
|
|||||||
@ -76,10 +76,10 @@
|
|||||||
"description": "Connect with oracle by either passing service name or database schema name.",
|
"description": "Connect with oracle by either passing service name or database schema name.",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/OracleServiceName"
|
"$ref": "#/definitions/OracleDatabaseSchema"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/OracleDatabaseSchema"
|
"$ref": "#/definitions/OracleServiceName"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user