mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-17 21:46:50 +00:00
Fix BigQuery LENGTH (#5216)
* BigQuery LENGTH * cat coverage * Fix coverage source
This commit is contained in:
parent
12e8a1fcf6
commit
cb414d5768
@ -1,4 +1,4 @@
|
|||||||
[run]
|
[run]
|
||||||
relative_files = True
|
relative_files = True
|
||||||
branch = True
|
branch = True
|
||||||
source = ingestion/
|
source = ingestion/src/
|
||||||
|
3
Makefile
3
Makefile
@ -78,7 +78,8 @@ coverage: ## Run all Python tests and generate the coverage report
|
|||||||
coverage erase
|
coverage erase
|
||||||
$(MAKE) unit_ingestion
|
$(MAKE) unit_ingestion
|
||||||
$(MAKE) run_ometa_integration_tests
|
$(MAKE) run_ometa_integration_tests
|
||||||
coverage xml -i -o ingestion/coverage.xml
|
coverage xml -o ingestion/coverage.xml
|
||||||
|
cat ingestion/coverage.xml
|
||||||
|
|
||||||
.PHONY: sonar_ingestion
|
.PHONY: sonar_ingestion
|
||||||
sonar_ingestion: ## Run the Sonar analysis based on the tests results and push it to SonarCloud
|
sonar_ingestion: ## Run the Sonar analysis based on the tests results and push it to SonarCloud
|
||||||
|
@ -42,6 +42,7 @@ def _(element, compiler, **kw):
|
|||||||
@compiles(LenFn, Dialects.Athena)
|
@compiles(LenFn, Dialects.Athena)
|
||||||
@compiles(LenFn, Dialects.Trino)
|
@compiles(LenFn, Dialects.Trino)
|
||||||
@compiles(LenFn, Dialects.Presto)
|
@compiles(LenFn, Dialects.Presto)
|
||||||
|
@compiles(LenFn, Dialects.BigQuery)
|
||||||
def _(element, compiler, **kw):
|
def _(element, compiler, **kw):
|
||||||
return "LENGTH(%s)" % compiler.process(element.clauses, **kw)
|
return "LENGTH(%s)" % compiler.process(element.clauses, **kw)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user