milenkovicm opened a new pull request, #1498:
URL: https://github.com/apache/datafusion-ballista/pull/1498
# Which issue does this PR close?
Closes #1292
.
# Rationale for this change
# What changes are included in this PR?
added `GET` `/api/job/{job_id}`
which returns:
```json
{
"job_id": "QsshxvN",
"job_name": "Remote SQL Example",
"job_status": "Completed. Produced 4 partitions containing 5 rows. Elapsed
time: 4562 ms.",
"status": "Completed",
"num_stages": 2,
"completed_stages": 2,
"percent_complete": 100,
"logical_plan": "Aggregate: groupBy=[[test.c1]], aggr=[[min(test.c12),
max(test.c12)]]\n Projection: test.c1, test.c12\n Filter: test.c11 >
Float64(0.1) AND test.c11 < Float64(0.9)\n TableScan: test projection=[c1,
c11, c12], partial_filters=[test.c11 > Float64(0.1), test.c11 < Float64(0.9)]",
"physical_plan": "AggregateExec: mode=FinalPartitioned, gby=[c1@0 as c1],
aggr=[min(test.c12), max(test.c12)]\n RepartitionExec:
partitioning=Hash([c1@0], 4), input_partitions=1\n AggregateExec:
mode=Partial, gby=[c1@0 as c1], aggr=[min(test.c12), max(test.c12)]\n
FilterExec: c11@1 > 0.1 AND c11@1 < 0.9, projection=[c1@0, c12@2]\n
DataSourceExec: file_groups={1 group:
[[Users/marko/git/datafusion_ballista/examples/testdata/aggregate_test_100.csv]]},
projection=[c1, c11, c12], file_type=csv, has_header=true\n",
"stage_plan": "ExecutionGraph[job_id=QsshxvN,
session_id=0d23a501-04f7-425b-a538-2ffd1eb6b924, available_tasks=0,
is_successful=true]\n=========SuccessfulStage[stage_id=1.0,
partitions=1]=========\nShuffleWriterExec: partitioning: Hash([c1@0], 4),
metrics=[output_rows=5, input_rows=5, repart_time=44.38µs, write_time=1.14ms]\n
AggregateExec: mode=Partial, gby=[c1@0 as c1], aggr=[min(test.c12),
max(test.c12)], metrics=[output_rows=5, elapsed_compute=255.25µs,
output_bytes=8.1 KB, output_batches=1, spill_count=0, spilled_bytes=0.0 B,
spilled_rows=0, skipped_aggregation_rows=0, peak_mem_used=10.41 K,
aggregate_arguments_time=7.96µs, aggregation_time=35.08µs,
emitting_time=14.62µs, time_calculating_group_ids=64.88µs,
reduction_factor=5.8% (5/86)]\n FilterExec: c11@1 > 0.1 AND c11@1 < 0.9,
projection=[c1@0, c12@2], metrics=[output_rows=86, elapsed_compute=122.12µs,
output_bytes=64.4 KB, output_batches=1, selectivity=86% (86/100)]\n
DataSourceExec: file_groups={1 group:
[[Users/marko/git/datafusion_ballista/examples/testdata/aggregate_test_100.csv]]},
projection=[c1, c11, c12], file_type=csv, has_header=true,
metrics=[output_rows=100, elapsed_compute=7.61ms, output_bytes=3.4 KB,
output_batches=1, batches_split=0, file_open_errors=0, file_scan_errors=0,
time_elapsed_opening=677.33µs, time_elapsed_processing=7.96ms,
time_elapsed_scanning_total=7.78ms,
time_elapsed_scanning_until_data=7.62ms]\n=========SuccessfulStage[stage_id=2.0,
partitions=4]=========\nShuffleWriterExec: partitioning: None,
metrics=[output_rows=5, input_rows=5, repart_time=4ns, write_time=3.08ms]\n
AggregateExec: mode=FinalPartitioned, gby=[c1@0 as c1], aggr=[min(test.c12),
max(test.c12)], metrics=[output_rows=5, elapsed_compute=431.71µs,
output_bytes=24.2 KB, output_batches=3, spill_count=0, spilled_bytes=0.0 B,
spilled_rows=0, peak_mem_used=34.64 K, aggregate_arguments_time=13.21µs,
aggregation_time=30.58µs, emitting_time=23.59µs,
time_calculating_group_ids=32.33µs]\n
ShuffleReaderExec: partitioning: Hash([c1@0], 4), metrics=[output_rows=20,
elapsed_compute=597.50µs, output_bytes=0.0 B, output_batches=0]\n"
}
```
# Are there any user-facing changes?
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]