Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Oct 22, 2024
1 parent 209352b commit 670c77a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exasol_advanced_analytics_framework/example/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down
3 changes: 2 additions & 1 deletion scripts/document_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ def render(self):
" an SQL statement, though. -->",
"```python",
example_generator.create_script(),
"",
example_generator.execute_script() + ";",
"```",
""])


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):
Expand Down

0 comments on commit 670c77a

Please sign in to comment.