Skip to content

misc: Add pipeline-level driver timing stats#17237

Closed
spershin wants to merge 1 commit intofacebookincubator:mainfrom
spershin:export-D101395498
Closed

misc: Add pipeline-level driver timing stats#17237
spershin wants to merge 1 commit intofacebookincubator:mainfrom
spershin:export-D101395498

Conversation

@spershin
Copy link
Copy Markdown
Contributor

@spershin spershin commented Apr 18, 2026

Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Reviewed By: bikramSingh91

Differential Revision: D101395498

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 18, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 68be145
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69e81895432b9c00080e514b

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 18, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 18, 2026

@spershin has exported this pull request. If you are a Meta employee, you can view the originating Diff in D101395498.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 18, 2026

Build Impact Analysis

Selective Build Targets (building these covers all 345 affected)

cmake --build _build/release --target aggregate_companion_functions_test physical_size_aggregator_test presto_sql_test spark_aggregation_fuzzer_test spark_expression_fuzzer_test velox_abfs_test velox_aggregates_GeometryAggregateTest velox_aggregates_reduce_agg_bm velox_aggregates_simple_aggregates_bm velox_aggregates_string_keys_bm velox_aggregates_test_group0 velox_aggregates_test_group1 velox_aggregates_test_group2 velox_aggregates_test_group3 velox_aggregates_test_group4 velox_aggregation_fuzzer_test velox_aggregation_runner_test velox_benchmark_array_writer_no_nulls velox_benchmark_array_writer_with_nulls velox_benchmark_basic_comparison_conjunct velox_benchmark_basic_decoded_vector velox_benchmark_basic_preproc velox_benchmark_basic_selectivity_vector velox_benchmark_basic_simple_arithmetic velox_benchmark_basic_simple_cast velox_benchmark_basic_vector_compare velox_benchmark_basic_vector_fuzzer velox_benchmark_basic_vector_slice velox_benchmark_estimate_flat_size velox_benchmark_expr_flat_no_nulls velox_benchmark_feature_normalization velox_benchmark_map_writer_no_nulls velox_benchmark_map_writer_with_nulls velox_benchmark_nested_array_writer_no_nulls velox_benchmark_nested_array_writer_with_nulls velox_cache_fuzzer velox_cast_benchmark velox_common_compression_test velox_common_test velox_core_test velox_driver_test velox_duckdb_conversion_test velox_dwio_arrow_parquet_writer_test velox_dwio_cache_test velox_dwio_common_bitpack_decoder_benchmark velox_dwio_common_data_buffer_benchmark velox_dwio_common_int_decoder_benchmark velox_dwio_common_test velox_dwio_dwrf_buffered_output_stream_test velox_dwio_dwrf_byte_rle_encoder_test velox_dwio_dwrf_byte_rle_test velox_dwio_dwrf_checksum_test velox_dwio_dwrf_column_reader_test velox_dwio_dwrf_column_statistics_test velox_dwio_dwrf_compression_test velox_dwio_dwrf_config_test velox_dwio_dwrf_data_buffer_holder_test velox_dwio_dwrf_decompression_test velox_dwio_dwrf_decryption_test velox_dwio_dwrf_dictionary_encoder_test velox_dwio_dwrf_dictionary_encoding_utils_test velox_dwio_dwrf_encoding_selector_test velox_dwio_dwrf_encryption_test velox_dwio_dwrf_flush_policy_test velox_dwio_dwrf_index_builder_test velox_dwio_dwrf_int_direct_test velox_dwio_dwrf_int_encoder_test velox_dwio_dwrf_layout_planner_test velox_dwio_dwrf_ratio_checker_test velox_dwio_dwrf_reader_base_test velox_dwio_dwrf_reader_test velox_dwio_dwrf_rle_test velox_dwio_dwrf_rlev1_encoder_test velox_dwio_dwrf_stream_labels_test velox_dwio_dwrf_stripe_dictionary_cache_test velox_dwio_dwrf_stripe_reader_base_test velox_dwio_dwrf_stripe_stream_test velox_dwio_dwrf_utils_test velox_dwio_dwrf_writer_context_test velox_dwio_dwrf_writer_encoding_manager_test velox_dwio_dwrf_writer_sink_test velox_dwio_dwrf_writer_test velox_dwio_iceberg_reader_benchmark velox_dwio_orc_column_statistics_test velox_dwio_orc_reader_filter_test velox_dwio_orc_reader_test velox_dwio_parquet_common_test velox_dwio_parquet_page_reader_test velox_dwio_parquet_reader_benchmark velox_dwio_parquet_reader_test velox_dwio_parquet_rlebp_decoder_test velox_dwio_parquet_structure_decoder_benchmark velox_dwio_parquet_structure_decoder_test velox_dwio_parquet_table_scan_test velox_dwio_parquet_thrift_test velox_dwio_parquet_tpch_test velox_dwrf_column_writer_index_test velox_dwrf_column_writer_stats_test velox_dwrf_column_writer_test velox_dwrf_e2e_filter_test velox_dwrf_e2e_reader_test velox_dwrf_e2e_writer_test velox_dwrf_float_column_writer_benchmark velox_dwrf_int_encoder_benchmark velox_dwrf_statistics_builder_utils_test velox_dwrf_writer_extended_test velox_dwrf_writer_flush_test velox_example_operator_extensibility velox_example_scan_orc velox_exchange_benchmark velox_exchange_fuzzer velox_exec_SpatialJoinTest velox_exec_bm_duplicate_project velox_exec_infra_test velox_exec_test_group0 velox_exec_test_group1 velox_exec_test_group2 velox_exec_test_group3 velox_exec_test_group4 velox_exec_test_group5 velox_exec_test_group6 velox_exec_test_group7 velox_exec_util_test_group0 velox_exec_vector_hasher_benchmark velox_expression_fuzzer_test velox_expression_fuzzer_unit_test velox_expression_runner_test velox_expression_runner_unit_test velox_expression_test velox_expression_verifier_unit_test velox_filemetadata_test velox_filter_project_benchmark velox_format_datetime_benchmark velox_function_dynamic_link_test velox_function_registry_test velox_functions_aggregates_test velox_functions_benchmarks_compare velox_functions_benchmarks_row_writer_no_nulls velox_functions_benchmarks_simdjson_function_with_expr velox_functions_benchmarks_string_writer_no_nulls velox_functions_benchmarks_url velox_functions_iceberg_test velox_functions_lib_test velox_functions_prestosql_benchmarks_array_contains velox_functions_prestosql_benchmarks_array_min_max velox_functions_prestosql_benchmarks_array_position velox_functions_prestosql_benchmarks_array_sum velox_functions_prestosql_benchmarks_bitwise velox_functions_prestosql_benchmarks_cardinality velox_functions_prestosql_benchmarks_comparisons velox_functions_prestosql_benchmarks_concat velox_functions_prestosql_benchmarks_date_time velox_functions_prestosql_benchmarks_field_reference velox_functions_prestosql_benchmarks_generic velox_functions_prestosql_benchmarks_in velox_functions_prestosql_benchmarks_map_concat velox_functions_prestosql_benchmarks_map_input velox_functions_prestosql_benchmarks_map_subscript velox_functions_prestosql_benchmarks_map_zip_with velox_functions_prestosql_benchmarks_not velox_functions_prestosql_benchmarks_regexp_replace velox_functions_prestosql_benchmarks_row velox_functions_prestosql_benchmarks_string_ascii_utf_functions velox_functions_prestosql_benchmarks_uuid_cast velox_functions_prestosql_benchmarks_width_bucket velox_functions_prestosql_benchmarks_zip velox_functions_prestosql_benchmarks_zip_with velox_functions_spark_aggregates_test velox_functions_spark_test velox_functions_test velox_fuzzer_connector_test velox_gcs_file_test velox_gcs_insert_test velox_gcs_multiendpoints_test velox_gcsfile_example velox_hash_benchmark velox_hash_join_build_benchmark velox_hash_join_list_result_benchmark velox_hash_join_prepare_join_table_benchmark velox_hdfs_file_test velox_hdfs_insert_test velox_hive_connector_test velox_hive_iceberg_deletion_vector_test velox_hive_iceberg_deletion_vector_writer_test velox_hive_iceberg_dwrf_insert_test velox_hive_iceberg_equality_delete_test velox_hive_iceberg_insert_test velox_hive_iceberg_test velox_hive_paimon_connector velox_hive_paimon_data_file_meta_test velox_hive_paimon_deletion_file_test velox_hive_paimon_row_kind_test velox_hive_paimon_split_test velox_hive_partition_function_benchmark velox_in_10_min_demo velox_join_fuzzer velox_key_encoder_test velox_like_benchmark velox_like_tpch_benchmark velox_mark_distinct_fuzzer velox_mark_sorted_benchmark velox_memory_arbitration_fuzzer velox_memory_test velox_merge_benchmark velox_numeric_upcast_benchmark velox_orderby_benchmark velox_parquet_e2e_filter_test velox_parquet_writer_sink_test velox_parquet_writer_test velox_parse_test velox_prefixsort_benchmark velox_presto_types_fuzzer_utils_test velox_prestosql_coverage velox_query_replayer velox_re2_functions_benchmarks velox_read_benchmark velox_row_number_fuzzer velox_rpc_operator_test velox_s3config_test velox_s3file_test velox_s3finalize_test velox_s3insert_test velox_s3metrics_test velox_s3multiendpoints_test velox_s3read_test velox_s3registration_test velox_serializer_test_group0 velox_simple_aggregate_test velox_sort_benchmark velox_spark_query_runner_test velox_spark_windows_test velox_sparksql_benchmarks_cast velox_sparksql_benchmarks_compare velox_sparksql_benchmarks_from_json velox_sparksql_benchmarks_get_funcs velox_sparksql_benchmarks_hash velox_sparksql_benchmarks_in velox_sparksql_benchmarks_simd_compare velox_sparksql_benchmarks_split velox_sparksql_coverage velox_spatial_join_benchmark velox_spatial_join_fuzzer velox_spiller_aggregate_benchmark velox_spiller_join_benchmark velox_streaming_aggregation_benchmark velox_table_evolution_fuzzer_test velox_test_util_test velox_text_reader_test velox_text_writer_test velox_tool_trace_test velox_topn_row_number_fuzzer velox_tpcds_connector_test velox_tpch_benchmark velox_tpch_connector_test velox_tpch_speed_test velox_trace_file_tool velox_unsafe_row_serialize_benchmark velox_wave_benchmark velox_wave_exec_test velox_window_fuzzer_test velox_window_prefixsort_benchmark velox_window_sub_partitioned_sort_benchmark velox_windows_agg_test velox_windows_rank_test velox_windows_value_test velox_writer_fuzzer_test

Total affected: 345/567 targets

Affected targets (345)

Directly changed (134)

Target Changed Files
spark_aggregation_fuzzer_test Driver.h, Task.h
velox_aggregates_GeometryAggregateTest Driver.h, Task.h
velox_aggregates_reduce_agg_bm Driver.h, Task.h
velox_aggregates_simple_aggregates_bm Driver.h, Task.h
velox_aggregates_string_keys_bm Driver.h, Task.h
velox_aggregates_test_group0 Driver.h, Task.h
velox_aggregates_test_group1 Driver.h, Task.h
velox_aggregates_test_group2 Driver.h, Task.h
velox_aggregates_test_group3 Driver.h, Task.h
velox_aggregates_test_group4 Driver.h, Task.h
velox_aggregation_fuzzer Driver.h, Task.h
velox_aggregation_fuzzer_base Driver.h, Task.h
velox_aggregation_fuzzer_test Driver.h, Task.h
velox_aggregation_result_verifier Driver.h, Task.h
velox_aggregation_runner_test Driver.h, Task.h
velox_core_test Driver.h
velox_coverage_util Driver.h
velox_cursor Driver.h, Task.h
velox_driver_test Driver.h, Task.h
velox_dwio_common Driver.h
velox_dwio_common_test Driver.h
velox_dwio_parquet_table_scan_test Driver.h, Task.h
velox_dwio_parquet_tpch_test Driver.h, Task.h
velox_example_operator_extensibility Driver.h, Task.h
velox_exchange_benchmark Driver.h, Task.h
velox_exchange_fuzzer Driver.h, Task.h
velox_exec Driver.cpp, Driver.h, Task.cpp, Task.h
velox_exec_SpatialJoinTest Driver.h, Task.h
velox_exec_bm_duplicate_project Driver.h, Task.h
velox_exec_infra_test Driver.h, Task.h, TaskTest.cpp
velox_exec_test_group0 Driver.h, Task.h
velox_exec_test_group1 Driver.h, Task.h
velox_exec_test_group2 Driver.h, Task.h
velox_exec_test_group3 Driver.h, Task.h
velox_exec_test_group4 Driver.h, Task.h
velox_exec_test_group5 Driver.h, Task.h
velox_exec_test_group6 Driver.h, Task.h
velox_exec_test_group7 Driver.h, Task.h
velox_exec_test_lib Driver.h, Task.h
velox_exec_util_test_group0 Driver.h, Task.h
velox_exec_vector_hasher_benchmark Driver.h
velox_expression_fuzzer Driver.h, Task.h
velox_expression_fuzzer_test Driver.h, Task.h
velox_expression_runner Driver.h, Task.h
velox_expression_runner_test Driver.h, Task.h
velox_expression_test Driver.h, Task.h
velox_expression_test_utility Driver.h, Task.h
velox_expression_verifier Driver.h, Task.h
velox_filter_project_benchmark Driver.h, Task.h
velox_functions_aggregates_test_lib Driver.h, Task.h
velox_functions_spark_aggregates_test Driver.h, Task.h
velox_functions_window Driver.h
velox_functions_window_test_lib Driver.h, Task.h
velox_fuzzer_connector_test Driver.h, Task.h
velox_fuzzer_util Driver.h, Task.h
velox_gcs_insert_test Driver.h, Task.h
velox_gcs_multiendpoints_test Driver.h, Task.h
velox_hash_benchmark Driver.h
velox_hash_join_build_benchmark Driver.h, Task.h
velox_hash_join_list_result_benchmark Driver.h
velox_hash_join_prepare_join_table_benchmark Driver.h
velox_hdfs_insert_test Driver.h, Task.h
velox_hive_connector Driver.h
velox_hive_connector_test Driver.h, Task.h
velox_hive_iceberg_dwrf_insert_test Driver.h, Task.h
velox_hive_iceberg_equality_delete_test Driver.h, Task.h
velox_hive_iceberg_insert_test Driver.h, Task.h
velox_hive_iceberg_splitreader Driver.h
velox_hive_iceberg_test Driver.h, Task.h
velox_hive_paimon_connector Driver.h
velox_in_10_min_demo Driver.h, Task.h
velox_join_fuzzer Driver.h, Task.h
velox_key_encoder_test Driver.h, Task.h
velox_mark_distinct_fuzzer Driver.h, Task.h
velox_mark_distinct_fuzzer_lib Driver.h, Task.h
velox_mark_sorted_benchmark Driver.h, Task.h
velox_memory_arbitration_fuzzer Driver.h, Task.h
velox_memory_test Driver.h, Task.h
velox_merge_benchmark Driver.h
velox_orderby_benchmark Driver.h, Task.h
velox_parquet_writer_test Driver.h, Task.h
velox_prefixsort_benchmark Driver.h
velox_query_benchmark Driver.h, Task.h
velox_query_trace_replayer_base Driver.h, Task.h
velox_row_number_fuzzer Driver.h, Task.h
velox_row_number_fuzzer_lib Driver.h, Task.h
velox_rpc_operator Driver.h
velox_rpc_operator_test Driver.h, Task.h
velox_rpc_plan_node_translator Driver.h
velox_s3file_test Driver.h, Task.h
velox_s3insert_test Driver.h, Task.h
velox_s3metrics_test Driver.h, Task.h
velox_s3multiendpoints_test Driver.h, Task.h
velox_s3read_test Driver.h, Task.h
velox_s3registration_test Driver.h, Task.h
velox_simple_aggregate_test Driver.h, Task.h
velox_sort_benchmark Driver.h
velox_spark_query_runner Driver.h, Task.h
velox_spark_query_runner_test Driver.h, Task.h
velox_spark_windows_test Driver.h, Task.h
velox_spatial_join_benchmark Driver.h, Task.h
velox_spatial_join_fuzzer Driver.h, Task.h
velox_spill_fuzzer_base_lib Driver.h, Task.h
velox_spiller_aggregate_benchmark Driver.h
velox_spiller_aggregate_benchmark_base Driver.h
velox_spiller_join_benchmark Driver.h
velox_spiller_join_benchmark_base Driver.h
velox_streaming_aggregation_benchmark Driver.h, Task.h
velox_table_evolution_fuzzer_test Driver.h, Task.h
velox_tool_trace_test Driver.h, Task.h
velox_topn_row_number_fuzzer Driver.h, Task.h
velox_topn_row_number_fuzzer_lib Driver.h, Task.h
velox_tpcds_connector_test Driver.h, Task.h
velox_tpch_benchmark Driver.h, Task.h
velox_tpch_benchmark_lib Driver.h, Task.h
velox_tpch_connector Driver.h
velox_tpch_connector_test Driver.h, Task.h
velox_tpch_speed_test Driver.h, Task.h
velox_wave_benchmark Driver.h, Task.h
velox_wave_dwio Driver.h
velox_wave_exec Driver.h, Task.h
velox_wave_exec_test Driver.h, Task.h
velox_wave_mock_reader Driver.h, Task.h
velox_wave_stream Driver.h
velox_window Driver.h
velox_window_fuzzer Driver.h, Task.h
velox_window_fuzzer_test Driver.h, Task.h
velox_window_prefixsort_benchmark Driver.h, Task.h
velox_window_sub_partitioned_sort_benchmark Driver.h, Task.h
velox_windows_agg_test Driver.h, Task.h
velox_windows_rank_test Driver.h, Task.h
velox_windows_value_test Driver.h, Task.h
velox_writer_fuzzer Driver.h, Task.h
velox_writer_fuzzer_test Driver.h, Task.h

Transitively affected (211)

  • aggregate_companion_functions_test
  • physical_size_aggregator_test
  • presto_sql_test
  • spark_expression_fuzzer_test
  • velox_abfs_test
  • velox_aggregates
  • velox_benchmark_array_writer_no_nulls
  • velox_benchmark_array_writer_with_nulls
  • velox_benchmark_basic_comparison_conjunct
  • velox_benchmark_basic_decoded_vector
  • velox_benchmark_basic_preproc
  • velox_benchmark_basic_selectivity_vector
  • velox_benchmark_basic_simple_arithmetic
  • velox_benchmark_basic_simple_cast
  • velox_benchmark_basic_vector_compare
  • velox_benchmark_basic_vector_fuzzer
  • velox_benchmark_basic_vector_slice
  • velox_benchmark_builder
  • velox_benchmark_estimate_flat_size
  • velox_benchmark_expr_flat_no_nulls
  • velox_benchmark_feature_normalization
  • velox_benchmark_map_writer_no_nulls
  • velox_benchmark_map_writer_with_nulls
  • velox_benchmark_nested_array_writer_no_nulls
  • velox_benchmark_nested_array_writer_with_nulls
  • velox_cache_fuzzer
  • velox_cache_fuzzer_lib
  • velox_cast_benchmark
  • velox_common_compression_test
  • velox_common_test
  • velox_duckdb_conversion_test
  • velox_duckdb_parser
  • velox_dwio_arrow_parquet_writer
  • velox_dwio_arrow_parquet_writer_lib
  • velox_dwio_arrow_parquet_writer_test
  • velox_dwio_arrow_parquet_writer_test_lib
  • velox_dwio_arrow_parquet_writer_util_lib
  • velox_dwio_cache_test
  • velox_dwio_common_bitpack_decoder_benchmark
  • velox_dwio_common_compression
  • velox_dwio_common_data_buffer_benchmark
  • velox_dwio_common_int_decoder_benchmark
  • velox_dwio_common_test_utils
  • velox_dwio_dwrf_buffered_output_stream_test
  • velox_dwio_dwrf_byte_rle_encoder_test
  • velox_dwio_dwrf_byte_rle_test
  • velox_dwio_dwrf_checksum_test
  • velox_dwio_dwrf_column_reader_test
  • velox_dwio_dwrf_column_statistics_test
  • velox_dwio_dwrf_common
  • velox_dwio_dwrf_compression_test
  • velox_dwio_dwrf_config_test
  • velox_dwio_dwrf_data_buffer_holder_test
  • velox_dwio_dwrf_decompression_test
  • velox_dwio_dwrf_decryption_test
  • velox_dwio_dwrf_dictionary_encoder_test
  • velox_dwio_dwrf_dictionary_encoding_utils_test
  • velox_dwio_dwrf_encoding_selector_test
  • velox_dwio_dwrf_encryption_test
  • velox_dwio_dwrf_flush_policy_test
  • velox_dwio_dwrf_index_builder_test
  • velox_dwio_dwrf_int_direct_test
  • velox_dwio_dwrf_int_encoder_test
  • velox_dwio_dwrf_layout_planner_test
  • velox_dwio_dwrf_ratio_checker_test
  • velox_dwio_dwrf_reader
  • velox_dwio_dwrf_reader_base_test
  • velox_dwio_dwrf_reader_test
  • velox_dwio_dwrf_rle_test
  • velox_dwio_dwrf_rlev1_encoder_test
  • velox_dwio_dwrf_stream_labels_test
  • velox_dwio_dwrf_stripe_dictionary_cache_test
  • velox_dwio_dwrf_stripe_reader_base_test
  • velox_dwio_dwrf_stripe_stream_test
  • velox_dwio_dwrf_utils
  • velox_dwio_dwrf_utils_test
  • velox_dwio_dwrf_writer
  • velox_dwio_dwrf_writer_context_test
  • velox_dwio_dwrf_writer_encoding_manager_test
  • velox_dwio_dwrf_writer_sink_test
  • velox_dwio_dwrf_writer_test
  • velox_dwio_faulty_file_sink
  • velox_dwio_iceberg_reader_benchmark
  • velox_dwio_iceberg_reader_benchmark_lib
  • velox_dwio_native_parquet_reader
  • velox_dwio_orc_column_statistics_test
  • velox_dwio_orc_reader
  • velox_dwio_orc_reader_filter_test
  • velox_dwio_orc_reader_test
  • velox_dwio_parquet_common
  • velox_dwio_parquet_common_test
  • velox_dwio_parquet_page_reader_test
  • velox_dwio_parquet_reader
  • velox_dwio_parquet_reader_benchmark
  • velox_dwio_parquet_reader_benchmark_lib
  • velox_dwio_parquet_reader_test
  • velox_dwio_parquet_rlebp_decoder_test
  • velox_dwio_parquet_structure_decoder_benchmark
  • velox_dwio_parquet_structure_decoder_test
  • velox_dwio_parquet_thrift_test
  • velox_dwio_parquet_writer
  • velox_dwio_text_reader
  • velox_dwio_text_reader_register
  • velox_dwio_text_writer
  • velox_dwio_text_writer_register
  • velox_dwrf_column_writer_index_test
  • velox_dwrf_column_writer_stats_test
  • velox_dwrf_column_writer_test
  • velox_dwrf_e2e_filter_test
  • velox_dwrf_e2e_reader_test
  • velox_dwrf_e2e_writer_test
  • velox_dwrf_float_column_writer_benchmark
  • velox_dwrf_int_encoder_benchmark
  • velox_dwrf_statistics_builder_utils_test
  • velox_dwrf_test_utils
  • velox_dwrf_writer_extended_test
  • velox_dwrf_writer_flush_test
  • velox_example_scan_orc
  • velox_expression_fuzzer_unit_test
  • velox_expression_runner_unit_test
  • velox_expression_verifier_unit_test
  • velox_filemetadata_test
  • velox_format_datetime_benchmark
  • velox_function_dynamic_link_test
  • velox_function_registry_test
  • velox_functions_aggregates
  • velox_functions_aggregates_test
  • velox_functions_benchmarks_compare
  • velox_functions_benchmarks_row_writer_no_nulls
  • velox_functions_benchmarks_simdjson_function_with_expr
  • velox_functions_benchmarks_string_writer_no_nulls
  • velox_functions_benchmarks_url
  • velox_functions_iceberg_test
  • velox_functions_lib_test
  • velox_functions_prestosql_benchmarks_array_contains
  • velox_functions_prestosql_benchmarks_array_min_max
  • velox_functions_prestosql_benchmarks_array_position
  • velox_functions_prestosql_benchmarks_array_sum
  • velox_functions_prestosql_benchmarks_bitwise
  • velox_functions_prestosql_benchmarks_cardinality
  • velox_functions_prestosql_benchmarks_comparisons
  • velox_functions_prestosql_benchmarks_concat
  • velox_functions_prestosql_benchmarks_date_time
  • velox_functions_prestosql_benchmarks_field_reference
  • velox_functions_prestosql_benchmarks_generic
  • velox_functions_prestosql_benchmarks_in
  • velox_functions_prestosql_benchmarks_map_concat
  • velox_functions_prestosql_benchmarks_map_input
  • velox_functions_prestosql_benchmarks_map_subscript
  • velox_functions_prestosql_benchmarks_map_zip_with
  • velox_functions_prestosql_benchmarks_not
  • velox_functions_prestosql_benchmarks_regexp_replace
  • velox_functions_prestosql_benchmarks_row
  • velox_functions_prestosql_benchmarks_string_ascii_utf_functions
  • velox_functions_prestosql_benchmarks_uuid_cast
  • velox_functions_prestosql_benchmarks_width_bucket
  • velox_functions_prestosql_benchmarks_zip
  • velox_functions_prestosql_benchmarks_zip_with
  • velox_functions_spark_aggregates
  • velox_functions_spark_test
  • velox_functions_spark_window
  • velox_functions_test
  • velox_functions_test_lib
  • velox_gcs
  • velox_gcs_file_test
  • velox_gcsfile_example
  • velox_hdfs
  • velox_hdfs_file_test
  • velox_hive_iceberg_deletion_vector_test
  • velox_hive_iceberg_deletion_vector_writer_test
  • velox_hive_paimon_data_file_meta_test
  • velox_hive_paimon_deletion_file_test
  • velox_hive_paimon_row_kind_test
  • velox_hive_paimon_split
  • velox_hive_paimon_split_test
  • velox_hive_partition_function
  • velox_hive_partition_function_benchmark
  • velox_like_benchmark
  • velox_like_tpch_benchmark
  • velox_numeric_upcast_benchmark
  • velox_parquet_e2e_filter_test
  • velox_parquet_writer_sink_test
  • velox_parse_expression
  • velox_parse_parser
  • velox_parse_test
  • velox_parse_utils
  • velox_presto_types_fuzzer_utils_test
  • velox_prestosql_coverage
  • velox_query_replayer
  • velox_re2_functions_benchmarks
  • velox_read_benchmark
  • velox_s3config_test
  • velox_s3finalize_test
  • velox_s3fs
  • velox_serializer_test_group0
  • velox_simple_aggregate
  • velox_sparksql_benchmarks_cast
  • velox_sparksql_benchmarks_compare
  • velox_sparksql_benchmarks_from_json
  • velox_sparksql_benchmarks_get_funcs
  • velox_sparksql_benchmarks_hash
  • velox_sparksql_benchmarks_in
  • velox_sparksql_benchmarks_simd_compare
  • velox_sparksql_benchmarks_split
  • velox_sparksql_coverage
  • velox_test_util_test
  • velox_text_reader_test
  • velox_text_writer_test
  • velox_trace_file_tool
  • velox_trace_file_tool_base
  • velox_unsafe_row_serialize_benchmark

Fast path • Graph from main@7ed90a53dee9e640cba92a644dae85fe52b07fb9

@spershin spershin changed the title Add pipeline-level driver timing stats. misc: Add pipeline-level driver timing stats Apr 18, 2026
@github-actions
Copy link
Copy Markdown

CI Failure Analysis

❌ Expression Fuzzer with Presto SOT — FUZZER Failure View logs

Fuzzer: Presto Expression Fuzzer with Presto as Source of Truth
Failed instance: 1 of 4 (seed 699216811)

Error: Velox and Presto reference DB results don't match

File: velox/expression/tests/ExpressionVerifier.cpp:475
Function: verify

/__w/velox/velox/velox/velox/exec/tests/utils/QueryAssertions.cpp:1119: Failure
Expected 100, got 100
2 extra rows, 2 missing rows

The mismatched rows involve arrays of MAP(TIMESTAMP, BIGINT) values.
The difference appears to be in a single map value within a nested structure:
  Extra row has:   "1968-03-08T18:48:05.059000000","value":5738352764014970891
  Missing row has: "1968-03-08T18:48:05.059000000","value":5738352778760570891
                                                           ^^^^^^^^^^^^^^^^
  (values differ: 5738352764014970891 vs 5738352778760570891)

This indicates a computation error producing incorrect BIGINT values in a
map/array expression, where Velox and Presto disagree on the result.

Exception: VeloxRuntimeError
Error Source: RUNTIME
Error Code: INVALID_STATE
Reason: Velox and reference DB results don't match

The fuzzer instance crashed with SIGABRT after the assertion failure.


Correlation with PR changes:
This failure is not related to the PR changes. PR #17237 adds driver-level lifecycle timing metrics (driverQueuedWallNanos, driverOnThreadWallNanos, driverBlockedWallNanos) to Driver.cpp, Driver.h, Task.cpp, Task.h, and TaskTest.cpp. These changes are purely about runtime statistics tracking and do not affect expression evaluation, map functions, or any data processing logic.

Known issues:

Reproduce locally:

./velox_expression_fuzzer_test \
    --seed 699216811 \
    --enable_variadic_signatures \
    --velox_fuzzer_enable_complex_types \
    --lazy_vector_generation_ratio 0.2 \
    --common_dictionary_wraps_generation_ratio=0.3 \
    --velox_fuzzer_enable_column_reuse \
    --velox_fuzzer_enable_expression_reuse \
    --enable_dereference \
    --duration_sec 300 \
    --special_forms="cast,coalesce,if" \
    --velox_fuzzer_max_level_of_nesting=1 \
    --presto_url=http://127.0.0.1:8080

(Requires a running Presto server on port 8080)

Recommended action:
This is a pre-existing expression evaluation discrepancy between Velox and Presto, not caused by this PR. The PR can proceed. The fuzzer finding may warrant a separate investigation/issue to track the BIGINT value mismatch in nested map expressions with timestamps.

@spershin spershin requested a review from bikramSingh91 April 20, 2026 18:18
@meta-codesync meta-codesync Bot changed the title misc: Add pipeline-level driver timing stats Add pipeline-level driver timing stats. (#17237) Apr 21, 2026
@spershin spershin force-pushed the export-D101395498 branch from b1dab50 to 131a608 Compare April 21, 2026 17:18
spershin added a commit to spershin/velox-1 that referenced this pull request Apr 21, 2026
Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Differential Revision: D101395498
spershin added a commit to spershin/velox-1 that referenced this pull request Apr 21, 2026
Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Differential Revision: D101395498
@spershin spershin force-pushed the export-D101395498 branch from 131a608 to 8e033db Compare April 21, 2026 17:19
spershin added a commit to spershin/velox-1 that referenced this pull request Apr 21, 2026
Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Differential Revision: D101395498
@spershin spershin force-pushed the export-D101395498 branch from 8e033db to 46a95cc Compare April 21, 2026 17:19
@spershin spershin changed the title Add pipeline-level driver timing stats. (#17237) misc: Add pipeline-level driver timing stats Apr 21, 2026
spershin added a commit to spershin/velox-1 that referenced this pull request Apr 21, 2026
Summary:
Pull Request resolved: facebookincubator#17237

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Differential Revision: D101395498
@spershin spershin force-pushed the export-D101395498 branch from 46a95cc to 3bec709 Compare April 21, 2026 17:23
@meta-codesync meta-codesync Bot changed the title misc: Add pipeline-level driver timing stats Add pipeline-level driver timing stats. (#17237) Apr 21, 2026
Copy link
Copy Markdown
Contributor

@bikramSingh91 bikramSingh91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one nit.

Also, can you update the summary to include details about which new stats were added and an example of how they would look for a sample plan. Additionally, you can use that example to give more context on how these stats help fill in the gaps

Comment thread velox/exec/Task.cpp
spershin added a commit to spershin/velox-1 that referenced this pull request Apr 21, 2026
Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Differential Revision: D101395498
@spershin spershin force-pushed the export-D101395498 branch from 3bec709 to 9c85143 Compare April 21, 2026 22:04
@spershin spershin changed the title Add pipeline-level driver timing stats. (#17237) misc: Add pipeline-level driver timing stats Apr 21, 2026
Summary:

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Reviewed By: bikramSingh91

Differential Revision: D101395498
@meta-codesync meta-codesync Bot changed the title misc: Add pipeline-level driver timing stats Add pipeline-level driver timing stats. (#17237) Apr 22, 2026
@spershin spershin force-pushed the export-D101395498 branch from 9c85143 to 68be145 Compare April 22, 2026 00:38
@spershin spershin changed the title Add pipeline-level driver timing stats. (#17237) misc: Add pipeline-level driver timing stats Apr 22, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 22, 2026

This pull request has been merged in 39843f2.

shrshi pushed a commit to patdevinwilson/velox that referenced this pull request Apr 23, 2026
Summary:
Pull Request resolved: facebookincubator#17237

Operator stats have gaps and to suitable to determine where time went in a task.
Adding driver timing stats per pipeline to assist in understanding a query bottlenecks.

The current version does not handle the grouped execution well.
Working on the extra to support grouped execution as well.

Reviewed By: bikramSingh91

Differential Revision: D101395498

fbshipit-source-id: 1bd6e5311844f851109fd694afe37d101efe90a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants