-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #203: Cleaned-up package names and directory structure * Fixed amalgation of lua scripts * Fixed test_python_query_handler_runner.py * removed duplicate declaration of class DropyQuery * Applied additional renamings as suggested by code review * query.handler -> exasol/analytics/query_handler * query_result -> exasol/analytics/query/handler/result * exasol/analytics/deployment/ -> exasol.analytics.query_handler/deployment * exasol/analytics/deploy.py -> exasol.analytics.query_handler/deployment/deploy.py * exasol/analytics/slc.py -> exasol.analytics.query_handler/deployment/slc.py renamed dir exasol.analytics.query_handler.result to exasol.analytics.query_handler.query.result renamed file exasol.analytics.query_handler.query.result.impl.py to exasol.analytics.query_handler.result.py Co-authored-by: Nicola Coretti <[email protected]>
- Loading branch information
Showing
289 changed files
with
1,574 additions
and
1,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
exasol_advanced_analytics_framework/resources/outputs/create_query_loop.sql linguist-generated | ||
exasol/analytics/resources/outputs/create_query_loop.sql linguist-generated | ||
setup.py linguist-generated | ||
poetry.lock linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions
7
.../query_handler/context/connection_name.py → .../query_handler/context/connection_name.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
exasol/analytics/query_handler/context/connection_name_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from exasol.analytics.query_handler.context.connection_name import ConnectionName, ConnectionNameImpl | ||
from exasol.analytics.query_handler.context.proxy.db_object_name_proxy import DBObjectNameProxy | ||
from exasol.analytics.query_handler.query.drop.connection import DropConnectionQuery | ||
from exasol.analytics.query_handler.query.interface import Query | ||
|
||
|
||
class ConnectionNameProxy(DBObjectNameProxy[ConnectionName], ConnectionName): | ||
|
||
@property | ||
def fully_qualified(self) -> str: | ||
return self.quoted_name | ||
|
||
def get_cleanup_query(self) -> Query: | ||
return DropConnectionQuery(self._db_object_name) | ||
|
||
def __init__(self, connection_name: ConnectionName, global_counter_value: int): | ||
super().__init__(connection_name, global_counter_value) |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../context/proxy/bucketfs_location_proxy.py → .../context/proxy/bucketfs_location_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...ler/context/proxy/db_object_name_proxy.py → ...ler/context/proxy/db_object_name_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...proxy/db_object_name_with_schema_proxy.py → ...proxy/db_object_name_with_schema_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...y_handler/context/proxy/drop_udf_query.py → ...y_handler/context/proxy/drop_udf_query.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...er/context/proxy/table_like_name_proxy.py → ...er/context/proxy/table_like_name_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
exasol/analytics/query_handler/context/proxy/table_name.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from exasol.analytics.schema import TableName | ||
|
||
|
||
from exasol.analytics.query_handler.context.proxy.table_like_name_proxy import TableLikeNameProxy | ||
from exasol.analytics.query_handler.query.drop.table import DropTableQuery | ||
from exasol.analytics.query_handler.query.interface import Query | ||
|
||
|
||
class TableNameProxy(TableLikeNameProxy[TableName], TableName): | ||
|
||
def __init__(self, table_like_name: TableName, global_counter_value: int): | ||
super().__init__(table_like_name, global_counter_value) | ||
|
||
def get_cleanup_query(self) -> Query: | ||
return DropTableQuery(self._db_object_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from exasol.analytics.schema import UDFName | ||
|
||
|
||
from exasol.analytics.query_handler.context.proxy.db_object_name_with_schema_proxy import DBObjectNameWithSchemaProxy | ||
from exasol.analytics.query_handler.context.proxy.drop_udf_query import DropUDFQuery | ||
from exasol.analytics.query_handler.query.interface import Query | ||
|
||
|
||
class UDFNameProxy(DBObjectNameWithSchemaProxy[UDFName], UDFName): | ||
|
||
def get_cleanup_query(self) -> Query: | ||
return DropUDFQuery(self._db_object_name) | ||
|
||
def __init__(self, script_name: UDFName, global_counter_value: int): | ||
super().__init__(script_name, global_counter_value) |
15 changes: 15 additions & 0 deletions
15
exasol/analytics/query_handler/context/proxy/view_name_proxy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from exasol.analytics.schema import ViewName | ||
|
||
|
||
from exasol.analytics.query_handler.context.proxy.table_like_name_proxy import TableLikeNameProxy | ||
from exasol.analytics.query_handler.query.drop.view import DropViewQuery | ||
from exasol.analytics.query_handler.query.interface import Query | ||
|
||
|
||
class ViewNameProxy(TableLikeNameProxy[ViewName], ViewName): | ||
|
||
def __init__(self, table_like_name: ViewName, global_counter_value: int): | ||
super().__init__(table_like_name, global_counter_value) | ||
|
||
def get_cleanup_query(self) -> Query: | ||
return DropViewQuery(self._db_object_name) |
13 changes: 7 additions & 6 deletions
13
..._handler/context/query_handler_context.py → ..._handler/context/query_handler_context.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...er/context/scope_query_handler_context.py → .../analytics/query_handler/context/scope.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
...alytics_framework/deployment/constants.py → ...ics/query_handler/deployment/constants.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
import pathlib | ||
from importlib_resources import files | ||
|
||
BASE_DIR = "exasol_advanced_analytics_framework" | ||
|
||
BASE_PACKAGE = "exasol.analytics" | ||
BASE_DIR = BASE_PACKAGE.replace(".", "/") | ||
TEMPLATES_DIR = pathlib.Path("resources", "templates") | ||
OUTPUTS_DIR = pathlib.Path("resources", "outputs") | ||
SOURCE_DIR = files(f"{BASE_DIR}.udf_framework") | ||
SOURCE_DIR = files(f"{BASE_PACKAGE}.query_handler.udf.runner") | ||
|
||
UDF_CALL_TEMPLATES = { | ||
"query_handler_runner_udf_call.py": "create_query_handler.jinja.sql" | ||
"call_udf.py": "create_query_handler.jinja.sql" | ||
} | ||
LUA_SCRIPT_TEMPLATE = "create_query_loop.jinja.sql" | ||
LUA_SCRIPT_OUTPUT = pathlib.Path(BASE_DIR, OUTPUTS_DIR, "create_query_loop.sql") |
4 changes: 2 additions & 2 deletions
4
...ol_advanced_analytics_framework/deploy.py → ...lytics/query_handler/deployment/deploy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.