mengw15 commented on code in PR #9049:
URL: https://github.com/apache/texera/pull/9049#discussion_r4477977492
##########
amber/src/main/scala/org/apache/texera/web/service/ExecutionResultService.scala:
##########
@@ -442,10 +456,11 @@ class ExecutionResultService(
val opStorage =
DocumentFactory.openDocument(storageUri.get)._1
allTableStats(opId.id) = opStorage.getTableStatistics
- WorkflowExecutionsResource.updateResultSize(
+ WorkflowExecutionsResource.updateResultSizeAndCount(
Review Comment:
Thanks, confirmed: with no subscriber the count stayed null. Done in
ef97aa1c2a1b406f95cbc6e18416b32d06582dec: size and count are now written in
`onResultUpdate`, on every poll and once more when the run ends. The tests now
finish a run without a subscriber, and the count test fails on the previous
code.
##########
sql/texera_ddl.sql:
##########
@@ -102,6 +102,7 @@ CREATE TYPE workflow_computing_unit_termination_reason_enum
AS ENUM ('USER_REQUE
CREATE TYPE provider_type_enum AS ENUM ('LOCAL', 'GOOGLE', 'ORCID', 'APPLE');
CREATE TYPE user_warehouse_flavor_enum AS ENUM ('local', 'aws');
CREATE TYPE default_view_enum AS ENUM ('CANVAS', 'FORM');
+CREATE TYPE output_mode_enum AS ENUM ('SET_SNAPSHOT', 'SET_DELTA',
'SINGLE_SNAPSHOT');
Review Comment:
Done in ef97aa1c2a1b406f95cbc6e18416b32d06582dec: the proto enum and
`output_mode_enum` now point at each other, and the match ends with a
catch-all, so a missed mode is stored as no mode instead of failing the insert.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]