Fix BigQuery LENGTH (#5216)

* BigQuery LENGTH

* cat coverage

* Fix coverage source
This commit is contained in:
Pere Miquel Brull 2022-05-30 16:12:45 +02:00 committed by GitHub
parent 12e8a1fcf6
commit cb414d5768
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
[run]
relative_files = True
branch = True
source = ingestion/
source = ingestion/src/

View File

@ -78,7 +78,8 @@ coverage: ## Run all Python tests and generate the coverage report
coverage erase
$(MAKE) unit_ingestion
$(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
sonar_ingestion: ## Run the Sonar analysis based on the tests results and push it to SonarCloud

View File

@ -42,6 +42,7 @@ def _(element, compiler, **kw):
@compiles(LenFn, Dialects.Athena)
@compiles(LenFn, Dialects.Trino)
@compiles(LenFn, Dialects.Presto)
@compiles(LenFn, Dialects.BigQuery)
def _(element, compiler, **kw):
return "LENGTH(%s)" % compiler.process(element.clauses, **kw)