diff --git a/exasol_advanced_analytics_framework/example/generator.py b/exasol_advanced_analytics_framework/example/generator.py index 04273638..120b6b35 100644 --- a/exasol_advanced_analytics_framework/example/generator.py +++ b/exasol_advanced_analytics_framework/example/generator.py @@ -51,7 +51,7 @@ def create_script(script_arguments=SCRIPT_ARGUMENTS): ' "{{ query_handler.udf.schema }}"."{{ query_handler.udf.name }}"(...)\n' 'EMITS (outputs VARCHAR(2000000)) AS\n' '{{ python_code }}\n' - '/\n\n' + '/\n' ) python_code = importlib.resources.read_text( f"{constants.BASE_DIR}.{PACKAGE_PATH}", diff --git a/scripts/document_updater.py b/scripts/document_updater.py index 00443f3f..7905efaa 100644 --- a/scripts/document_updater.py +++ b/scripts/document_updater.py @@ -29,6 +29,7 @@ def render(self): " an SQL statement, though. -->", "```python", example_generator.create_script(), + "", example_generator.execute_script() + ";", "```", ""]) @@ -36,7 +37,7 @@ def render(self): class ChunkReader: """ - Enables to replace chunks of a string by text generated from + Enables to replace chunks of a string by generated text, e.g. from jinja templates. """ def __init__(self):