Open ckunki opened 1 month ago
start()
:query_list
two more statements:SelectQuery
with CREATE
b. SelectQuery
with INSERT
from datetime import datetime
from exasol.bucketfs import as_string
def start(self) -> Union[Continue, Finish[str]]:
def sample_content(key: str) -> str:
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
return f"{timestamp} {key} {self.parameter}"
self.bfs_proxy = self.query_handler_context.get_temporary_bucketfs_location()
self._bfs_file(self.bfs_proxy).write(sample_content("bucketfs"))
handle_query_result()
: def handle_query_result(self, query_result: QueryResult) -> Union[Continue, Finish[str]]:
s = as_string(self._bfs_file(self.bfs_proxy).read())
See also
@ckunki Maybe we make actually a test case out of it
Same thought here :slightly_smiling_face: I added an item to the acceptance criteria
In the scope of ticket #26 we added a user guide to AAF.
The current ticket requests to enhance the user guide by describing an extended usage scenario (EUS).
Features
Section "Usage" of the user guide should explain that an algorithm is implemented as
QueryHandler
and what aQueryHandler
is.Demonstrate using
Acceptance Criteria