micromegas 0.11.0__py3-none-any.whl → 0.13.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. micromegas/__init__.py +12 -3
  2. micromegas/admin.py +227 -0
  3. micromegas/flightsql/FlightSql_pb2.py +148 -140
  4. micromegas/flightsql/__init__.py +1 -0
  5. micromegas/flightsql/client.py +609 -7
  6. micromegas/flightsql/time.py +1 -0
  7. micromegas/perfetto.py +100 -187
  8. micromegas/time.py +97 -1
  9. micromegas-0.13.0.dist-info/METADATA +120 -0
  10. micromegas-0.13.0.dist-info/RECORD +11 -0
  11. micromegas/thirdparty/perfetto/protos/perfetto/common/android_energy_consumer_descriptor_pb2.py +0 -38
  12. micromegas/thirdparty/perfetto/protos/perfetto/common/android_log_constants_pb2.py +0 -38
  13. micromegas/thirdparty/perfetto/protos/perfetto/common/builtin_clock_pb2.py +0 -36
  14. micromegas/thirdparty/perfetto/protos/perfetto/common/descriptor_pb2.py +0 -62
  15. micromegas/thirdparty/perfetto/protos/perfetto/common/gpu_counter_descriptor_pb2.py +0 -44
  16. micromegas/thirdparty/perfetto/protos/perfetto/common/perf_events_pb2.py +0 -46
  17. micromegas/thirdparty/perfetto/protos/perfetto/common/protolog_common_pb2.py +0 -36
  18. micromegas/thirdparty/perfetto/protos/perfetto/common/sys_stats_counters_pb2.py +0 -38
  19. micromegas/thirdparty/perfetto/protos/perfetto/common/trace_stats_pb2.py +0 -48
  20. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_game_intervention_list_config_pb2.py +0 -36
  21. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_input_event_config_pb2.py +0 -42
  22. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_log_config_pb2.py +0 -37
  23. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_polled_state_config_pb2.py +0 -36
  24. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_sdk_sysprop_guard_config_pb2.py +0 -36
  25. micromegas/thirdparty/perfetto/protos/perfetto/config/android/android_system_property_config_pb2.py +0 -36
  26. micromegas/thirdparty/perfetto/protos/perfetto/config/android/network_trace_config_pb2.py +0 -36
  27. micromegas/thirdparty/perfetto/protos/perfetto/config/android/packages_list_config_pb2.py +0 -36
  28. micromegas/thirdparty/perfetto/protos/perfetto/config/android/pixel_modem_config_pb2.py +0 -38
  29. micromegas/thirdparty/perfetto/protos/perfetto/config/android/protolog_config_pb2.py +0 -41
  30. micromegas/thirdparty/perfetto/protos/perfetto/config/android/surfaceflinger_layers_config_pb2.py +0 -40
  31. micromegas/thirdparty/perfetto/protos/perfetto/config/android/surfaceflinger_transactions_config_pb2.py +0 -38
  32. micromegas/thirdparty/perfetto/protos/perfetto/config/chrome/chrome_config_pb2.py +0 -38
  33. micromegas/thirdparty/perfetto/protos/perfetto/config/chrome/v8_config_pb2.py +0 -36
  34. micromegas/thirdparty/perfetto/protos/perfetto/config/data_source_config_pb2.py +0 -120
  35. micromegas/thirdparty/perfetto/protos/perfetto/config/etw/etw_config_pb2.py +0 -38
  36. micromegas/thirdparty/perfetto/protos/perfetto/config/ftrace/ftrace_config_pb2.py +0 -48
  37. micromegas/thirdparty/perfetto/protos/perfetto/config/gpu/gpu_counter_config_pb2.py +0 -36
  38. micromegas/thirdparty/perfetto/protos/perfetto/config/gpu/vulkan_memory_config_pb2.py +0 -36
  39. micromegas/thirdparty/perfetto/protos/perfetto/config/inode_file/inode_file_config_pb2.py +0 -38
  40. micromegas/thirdparty/perfetto/protos/perfetto/config/interceptor_config_pb2.py +0 -37
  41. micromegas/thirdparty/perfetto/protos/perfetto/config/interceptors/console_config_pb2.py +0 -38
  42. micromegas/thirdparty/perfetto/protos/perfetto/config/power/android_power_config_pb2.py +0 -38
  43. micromegas/thirdparty/perfetto/protos/perfetto/config/process_stats/process_stats_config_pb2.py +0 -40
  44. micromegas/thirdparty/perfetto/protos/perfetto/config/profiling/heapprofd_config_pb2.py +0 -38
  45. micromegas/thirdparty/perfetto/protos/perfetto/config/profiling/java_hprof_config_pb2.py +0 -38
  46. micromegas/thirdparty/perfetto/protos/perfetto/config/profiling/perf_event_config_pb2.py +0 -43
  47. micromegas/thirdparty/perfetto/protos/perfetto/config/statsd/atom_ids_pb2.py +0 -36
  48. micromegas/thirdparty/perfetto/protos/perfetto/config/statsd/statsd_tracing_config_pb2.py +0 -39
  49. micromegas/thirdparty/perfetto/protos/perfetto/config/sys_stats/sys_stats_config_pb2.py +0 -39
  50. micromegas/thirdparty/perfetto/protos/perfetto/config/system_info/system_info_pb2.py +0 -36
  51. micromegas/thirdparty/perfetto/protos/perfetto/config/test_config_pb2.py +0 -38
  52. micromegas/thirdparty/perfetto/protos/perfetto/config/trace_config_pb2.py +0 -90
  53. micromegas/thirdparty/perfetto/protos/perfetto/config/track_event/track_event_config_pb2.py +0 -36
  54. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/android_game_intervention_list_pb2.py +0 -40
  55. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/android_log_pb2.py +0 -43
  56. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/android_system_property_pb2.py +0 -38
  57. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/camera_event_pb2.py +0 -48
  58. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/frame_timeline_event_pb2.py +0 -54
  59. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/gpu_mem_event_pb2.py +0 -36
  60. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/graphics/rect_pb2.py +0 -36
  61. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/graphics_frame_event_pb2.py +0 -40
  62. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/initial_display_state_pb2.py +0 -36
  63. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/network_trace_pb2.py +0 -46
  64. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/packages_list_pb2.py +0 -38
  65. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/pixel_modem_events_pb2.py +0 -38
  66. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/protolog_pb2.py +0 -43
  67. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/shell_transition_pb2.py +0 -42
  68. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/surfaceflinger_common_pb2.py +0 -59
  69. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/surfaceflinger_layers_pb2.py +0 -72
  70. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/surfaceflinger_transactions_pb2.py +0 -76
  71. micromegas/thirdparty/perfetto/protos/perfetto/trace/android/winscope_extensions_pb2.py +0 -36
  72. micromegas/thirdparty/perfetto/protos/perfetto/trace/chrome/chrome_benchmark_metadata_pb2.py +0 -36
  73. micromegas/thirdparty/perfetto/protos/perfetto/trace/chrome/chrome_metadata_pb2.py +0 -50
  74. micromegas/thirdparty/perfetto/protos/perfetto/trace/chrome/chrome_trace_event_pb2.py +0 -56
  75. micromegas/thirdparty/perfetto/protos/perfetto/trace/chrome/chrome_trigger_pb2.py +0 -36
  76. micromegas/thirdparty/perfetto/protos/perfetto/trace/chrome/v8_pb2.py +0 -70
  77. micromegas/thirdparty/perfetto/protos/perfetto/trace/clock_snapshot_pb2.py +0 -41
  78. micromegas/thirdparty/perfetto/protos/perfetto/trace/etw/etw_event_bundle_pb2.py +0 -37
  79. micromegas/thirdparty/perfetto/protos/perfetto/trace/etw/etw_event_pb2.py +0 -37
  80. micromegas/thirdparty/perfetto/protos/perfetto/trace/etw/etw_pb2.py +0 -48
  81. micromegas/thirdparty/perfetto/protos/perfetto/trace/extension_descriptor_pb2.py +0 -37
  82. micromegas/thirdparty/perfetto/protos/perfetto/trace/filesystem/inode_file_map_pb2.py +0 -40
  83. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/android_fs_pb2.py +0 -46
  84. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/binder_pb2.py +0 -52
  85. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/block_pb2.py +0 -72
  86. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/cgroup_pb2.py +0 -52
  87. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/clk_pb2.py +0 -40
  88. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/cma_pb2.py +0 -38
  89. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/compaction_pb2.py +0 -62
  90. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/cpuhp_pb2.py +0 -44
  91. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/cros_ec_pb2.py +0 -36
  92. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/dcvsh_pb2.py +0 -36
  93. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/dma_fence_pb2.py +0 -44
  94. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/dmabuf_heap_pb2.py +0 -36
  95. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/dpu_pb2.py +0 -42
  96. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/drm_pb2.py +0 -38
  97. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ext4_pb2.py +0 -224
  98. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/f2fs_pb2.py +0 -106
  99. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/fastrpc_pb2.py +0 -44
  100. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/fence_pb2.py +0 -42
  101. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/filemap_pb2.py +0 -38
  102. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ftrace_event_bundle_pb2.py +0 -66
  103. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ftrace_event_pb2.py +0 -105
  104. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ftrace_pb2.py +0 -40
  105. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ftrace_stats_pb2.py +0 -42
  106. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/g2d_pb2.py +0 -36
  107. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/generic_pb2.py +0 -38
  108. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/google_icc_trace_pb2.py +0 -36
  109. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/google_irm_trace_pb2.py +0 -36
  110. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/gpu_mem_pb2.py +0 -36
  111. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/gpu_scheduler_pb2.py +0 -40
  112. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/hyp_pb2.py +0 -44
  113. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/i2c_pb2.py +0 -50
  114. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ion_pb2.py +0 -36
  115. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ipi_pb2.py +0 -40
  116. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/irq_pb2.py +0 -44
  117. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/kgsl_pb2.py +0 -36
  118. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/kmem_pb2.py +0 -122
  119. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/kvm_pb2.py +0 -106
  120. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/lowmemorykiller_pb2.py +0 -36
  121. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/lwis_pb2.py +0 -36
  122. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/mali_pb2.py +0 -98
  123. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/mdss_pb2.py +0 -76
  124. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/mm_event_pb2.py +0 -36
  125. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/net_pb2.py +0 -42
  126. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/oom_pb2.py +0 -38
  127. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/panel_pb2.py +0 -42
  128. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/perf_trace_counters_pb2.py +0 -36
  129. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/power_pb2.py +0 -60
  130. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/printk_pb2.py +0 -36
  131. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/raw_syscalls_pb2.py +0 -38
  132. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/regulator_pb2.py +0 -48
  133. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/rpm_pb2.py +0 -36
  134. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/samsung_pb2.py +0 -36
  135. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/sched_pb2.py +0 -64
  136. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/scm_pb2.py +0 -38
  137. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/sde_pb2.py +0 -46
  138. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/signal_pb2.py +0 -38
  139. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/skb_pb2.py +0 -36
  140. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/sock_pb2.py +0 -36
  141. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/sync_pb2.py +0 -40
  142. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/synthetic_pb2.py +0 -38
  143. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/systrace_pb2.py +0 -36
  144. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/task_pb2.py +0 -38
  145. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/tcp_pb2.py +0 -36
  146. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/thermal_exynos_pb2.py +0 -38
  147. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/thermal_pb2.py +0 -38
  148. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/trusty_pb2.py +0 -70
  149. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/ufs_pb2.py +0 -38
  150. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/v4l2_pb2.py +0 -46
  151. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/virtio_gpu_pb2.py +0 -38
  152. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/virtio_video_pb2.py +0 -42
  153. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/vmscan_pb2.py +0 -46
  154. micromegas/thirdparty/perfetto/protos/perfetto/trace/ftrace/workqueue_pb2.py +0 -42
  155. micromegas/thirdparty/perfetto/protos/perfetto/trace/gpu/gpu_counter_event_pb2.py +0 -39
  156. micromegas/thirdparty/perfetto/protos/perfetto/trace/gpu/gpu_log_pb2.py +0 -38
  157. micromegas/thirdparty/perfetto/protos/perfetto/trace/gpu/gpu_render_stage_event_pb2.py +0 -58
  158. micromegas/thirdparty/perfetto/protos/perfetto/trace/gpu/vulkan_api_event_pb2.py +0 -40
  159. micromegas/thirdparty/perfetto/protos/perfetto/trace/gpu/vulkan_memory_event_pb2.py +0 -44
  160. micromegas/thirdparty/perfetto/protos/perfetto/trace/interned_data/interned_data_pb2.py +0 -45
  161. micromegas/thirdparty/perfetto/protos/perfetto/trace/memory_graph_pb2.py +0 -48
  162. micromegas/thirdparty/perfetto/protos/perfetto/trace/perfetto/perfetto_metatrace_pb2.py +0 -40
  163. micromegas/thirdparty/perfetto/protos/perfetto/trace/perfetto/tracing_service_event_pb2.py +0 -36
  164. micromegas/thirdparty/perfetto/protos/perfetto/trace/power/android_energy_estimation_breakdown_pb2.py +0 -39
  165. micromegas/thirdparty/perfetto/protos/perfetto/trace/power/android_entity_state_residency_pb2.py +0 -40
  166. micromegas/thirdparty/perfetto/protos/perfetto/trace/power/battery_counters_pb2.py +0 -36
  167. micromegas/thirdparty/perfetto/protos/perfetto/trace/power/power_rails_pb2.py +0 -40
  168. micromegas/thirdparty/perfetto/protos/perfetto/trace/profiling/deobfuscation_pb2.py +0 -40
  169. micromegas/thirdparty/perfetto/protos/perfetto/trace/profiling/heap_graph_pb2.py +0 -57
  170. micromegas/thirdparty/perfetto/protos/perfetto/trace/profiling/profile_common_pb2.py +0 -50
  171. micromegas/thirdparty/perfetto/protos/perfetto/trace/profiling/profile_packet_pb2.py +0 -72
  172. micromegas/thirdparty/perfetto/protos/perfetto/trace/profiling/smaps_pb2.py +0 -38
  173. micromegas/thirdparty/perfetto/protos/perfetto/trace/ps/process_stats_pb2.py +0 -42
  174. micromegas/thirdparty/perfetto/protos/perfetto/trace/ps/process_tree_pb2.py +0 -40
  175. micromegas/thirdparty/perfetto/protos/perfetto/trace/remote_clock_sync_pb2.py +0 -39
  176. micromegas/thirdparty/perfetto/protos/perfetto/trace/statsd/statsd_atom_pb2.py +0 -38
  177. micromegas/thirdparty/perfetto/protos/perfetto/trace/sys_stats/sys_stats_pb2.py +0 -55
  178. micromegas/thirdparty/perfetto/protos/perfetto/trace/system_info/cpu_info_pb2.py +0 -38
  179. micromegas/thirdparty/perfetto/protos/perfetto/trace/system_info_pb2.py +0 -38
  180. micromegas/thirdparty/perfetto/protos/perfetto/trace/test_event_pb2.py +0 -39
  181. micromegas/thirdparty/perfetto/protos/perfetto/trace/trace_packet_defaults_pb2.py +0 -39
  182. micromegas/thirdparty/perfetto/protos/perfetto/trace/trace_packet_pb2.py +0 -107
  183. micromegas/thirdparty/perfetto/protos/perfetto/trace/trace_pb2.py +0 -37
  184. micromegas/thirdparty/perfetto/protos/perfetto/trace/trace_uuid_pb2.py +0 -36
  185. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_active_processes_pb2.py +0 -36
  186. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_application_state_info_pb2.py +0 -38
  187. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_compositor_scheduler_state_pb2.py +0 -75
  188. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_content_settings_event_info_pb2.py +0 -36
  189. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_frame_reporter_pb2.py +0 -44
  190. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_histogram_sample_pb2.py +0 -38
  191. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_keyed_service_pb2.py +0 -36
  192. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_latency_info_pb2.py +0 -42
  193. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_legacy_ipc_pb2.py +0 -38
  194. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_message_pump_pb2.py +0 -36
  195. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_mojo_event_info_pb2.py +0 -36
  196. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_process_descriptor_pb2.py +0 -38
  197. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_renderer_scheduler_state_pb2.py +0 -38
  198. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_thread_descriptor_pb2.py +0 -38
  199. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_user_event_pb2.py +0 -36
  200. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/chrome_window_handle_event_info_pb2.py +0 -36
  201. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/counter_descriptor_pb2.py +0 -40
  202. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/debug_annotation_pb2.py +0 -44
  203. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/log_message_pb2.py +0 -40
  204. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/pixel_modem_pb2.py +0 -36
  205. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/process_descriptor_pb2.py +0 -38
  206. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/range_of_interest_pb2.py +0 -36
  207. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/screenshot_pb2.py +0 -36
  208. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/source_location_pb2.py +0 -38
  209. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/task_execution_pb2.py +0 -36
  210. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/thread_descriptor_pb2.py +0 -38
  211. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/track_descriptor_pb2.py +0 -41
  212. micromegas/thirdparty/perfetto/protos/perfetto/trace/track_event/track_event_pb2.py +0 -74
  213. micromegas/thirdparty/perfetto/protos/perfetto/trace/translation/translation_table_pb2.py +0 -70
  214. micromegas/thirdparty/perfetto/protos/perfetto/trace/trigger_pb2.py +0 -36
  215. micromegas/thirdparty/perfetto/protos/perfetto/trace/ui_state_pb2.py +0 -38
  216. micromegas-0.11.0.dist-info/METADATA +0 -251
  217. micromegas-0.11.0.dist-info/RECORD +0 -215
  218. {micromegas-0.11.0.dist-info → micromegas-0.13.0.dist-info}/WHEEL +0 -0
micromegas/__init__.py CHANGED
@@ -2,8 +2,17 @@ import grpc
2
2
  from . import time
3
3
  from . import perfetto
4
4
  from . import flightsql
5
+ from . import admin
5
6
 
6
7
 
7
- def connect():
8
- "connect to the analytics service using default values"
9
- return flightsql.client.FlightSQLClient("grpc://localhost:50051")
8
+ def connect(preserve_dictionary=False):
9
+ """Connect to the analytics service using default values.
10
+
11
+ Args:
12
+ preserve_dictionary (bool, optional): When True, preserve dictionary encoding in
13
+ Arrow arrays for memory efficiency. Useful when using dictionary-encoded UDFs.
14
+ Defaults to False for backward compatibility.
15
+ """
16
+ return flightsql.client.FlightSQLClient(
17
+ "grpc://localhost:50051", preserve_dictionary=preserve_dictionary
18
+ )
micromegas/admin.py ADDED
@@ -0,0 +1,227 @@
1
+ """Administrative utilities for Micromegas lakehouse management.
2
+
3
+ This module provides functions for managing schema evolution and partition lifecycle
4
+ in Micromegas lakehouse. These functions are intended for administrative use and
5
+ should be used with caution as they perform potentially destructive operations.
6
+ """
7
+
8
+ import pandas as pd
9
+ from typing import Optional
10
+
11
+
12
+ def list_incompatible_partitions(
13
+ client, view_set_name: Optional[str] = None
14
+ ) -> pd.DataFrame:
15
+ """List partitions with schemas incompatible with current view set schemas.
16
+
17
+ This function identifies partitions that have schema versions different from
18
+ the current schema version for their view set. These incompatible partitions
19
+ are ignored during queries but take up storage space and should be
20
+ retired to free storage and enable clean schema evolution.
21
+
22
+ Args:
23
+ client: FlightSQLClient instance for executing queries.
24
+ view_set_name (str, optional): Filter results to a specific view set.
25
+ If None, returns incompatible partitions across all view sets.
26
+
27
+ Returns:
28
+ pandas.DataFrame: DataFrame with incompatible partition information containing:
29
+ - view_set_name: Name of the view set
30
+ - view_instance_id: Instance ID (e.g., process_id or 'global')
31
+ - incompatible_schema_hash: The old schema hash in the partition
32
+ - current_schema_hash: The current schema hash from ViewFactory
33
+ - partition_count: Number of incompatible partitions with this schema
34
+ - total_size_bytes: Total size in bytes of all incompatible partitions
35
+ - file_paths: Array of file paths for each incompatible partition (for precise retirement)
36
+
37
+ Example:
38
+ >>> import micromegas
39
+ >>> import micromegas.admin
40
+ >>>
41
+ >>> client = micromegas.connect()
42
+ >>>
43
+ >>> # List all incompatible partitions across all view sets
44
+ >>> incompatible = micromegas.admin.list_incompatible_partitions(client)
45
+ >>> print(f"Found {len(incompatible)} groups of incompatible partitions")
46
+ >>>
47
+ >>> # List incompatible partitions for specific view set
48
+ >>> log_incompatible = micromegas.admin.list_incompatible_partitions(client, 'log_entries')
49
+ >>> print(f"Log entries incompatible partitions: {log_incompatible['partition_count'].sum()}")
50
+
51
+ Note:
52
+ This function leverages the existing list_partitions() and list_view_sets()
53
+ UDTFs to perform server-side JOIN and aggregation for optimal performance.
54
+ Schema "hashes" are actually version numbers (e.g., [4]) not cryptographic hashes.
55
+ SQL is executed directly by DataFusion, so no SQL injection concerns.
56
+ """
57
+ # Build view filter clause if specific view set requested
58
+ view_filter = ""
59
+ if view_set_name is not None:
60
+ view_filter = f"AND p.view_set_name = '{view_set_name}'"
61
+
62
+ # Construct SQL query with JOIN between list_partitions() and list_view_sets()
63
+ # Server-side filtering and aggregation for optimal performance
64
+ sql = f"""
65
+ SELECT
66
+ p.view_set_name,
67
+ p.view_instance_id,
68
+ p.file_schema_hash as incompatible_schema_hash,
69
+ vs.current_schema_hash,
70
+ COUNT(*) as partition_count,
71
+ SUM(p.file_size) as total_size_bytes,
72
+ ARRAY_AGG(p.file_path) as file_paths
73
+ FROM list_partitions() p
74
+ JOIN list_view_sets() vs ON p.view_set_name = vs.view_set_name
75
+ WHERE p.file_schema_hash != vs.current_schema_hash
76
+ {view_filter}
77
+ GROUP BY p.view_set_name, p.view_instance_id, p.file_schema_hash, vs.current_schema_hash
78
+ ORDER BY p.view_set_name, p.view_instance_id
79
+ """
80
+
81
+ return client.query(sql)
82
+
83
+
84
+ def retire_incompatible_partitions(
85
+ client, view_set_name: Optional[str] = None
86
+ ) -> pd.DataFrame:
87
+ """Retire partitions with schemas incompatible with current view set schemas.
88
+
89
+ This function identifies and retires partitions that have schema versions
90
+ different from the current schema version for their view set. This enables
91
+ safe schema evolution by cleaning up old schema versions.
92
+
93
+ **SAFETY**: This function retires only the exact incompatible partitions by
94
+ their file paths, ensuring no compatible partitions are accidentally retired.
95
+
96
+ **WARNING**: This operation is irreversible. Retired partitions will be
97
+ permanently deleted from metadata and their data files removed from object storage.
98
+
99
+ Args:
100
+ client: FlightSQLClient instance for executing queries.
101
+ view_set_name (str, optional): Retire incompatible partitions only for
102
+ this specific view set. If None, retires incompatible partitions
103
+ across all view sets (use with extreme caution).
104
+
105
+ Returns:
106
+ pandas.DataFrame: DataFrame with retirement results containing:
107
+ - view_set_name: View set that was processed
108
+ - view_instance_id: Instance ID of partitions retired
109
+ - partitions_retired: Count of partitions successfully retired
110
+ - partitions_failed: Count of partitions that failed to retire
111
+ - storage_freed_bytes: Total bytes freed from storage
112
+ - retirement_messages: Array of detailed messages for each retirement attempt
113
+
114
+ Example:
115
+ >>> import micromegas
116
+ >>> import micromegas.admin
117
+ >>>
118
+ >>> client = micromegas.connect()
119
+ >>>
120
+ >>> # Preview what would be retired (recommended first step)
121
+ >>> preview = micromegas.admin.list_incompatible_partitions(client, 'log_entries')
122
+ >>> print(f"Would retire {preview['partition_count'].sum()} partitions")
123
+ >>> print(f"Would free {preview['total_size_bytes'].sum() / (1024**3):.2f} GB")
124
+ >>>
125
+ >>> # Retire incompatible partitions for specific view set
126
+ >>> if input("Proceed with retirement? (yes/no): ") == "yes":
127
+ ... result = micromegas.admin.retire_incompatible_partitions(client, 'log_entries')
128
+ ... print(f"Retired {result['partitions_retired'].sum()} partitions")
129
+ ... print(f"Failed {result['partitions_failed'].sum()} partitions")
130
+
131
+ Note:
132
+ This function uses the retire_partition_by_file() UDF to retire each
133
+ partition individually by its exact file path. This ensures precise
134
+ targeting and eliminates the risk of accidentally retiring compatible
135
+ partitions that happen to exist in the same time ranges.
136
+ """
137
+ # First identify incompatible partitions
138
+ incompatible = list_incompatible_partitions(client, view_set_name)
139
+
140
+ if incompatible.empty:
141
+ # No incompatible partitions found, return empty DataFrame with expected columns
142
+ return pd.DataFrame(
143
+ columns=[
144
+ "view_set_name",
145
+ "view_instance_id",
146
+ "partitions_retired",
147
+ "partitions_failed",
148
+ "storage_freed_bytes",
149
+ "retirement_messages",
150
+ ]
151
+ )
152
+
153
+ results = []
154
+
155
+ # For each group of incompatible partitions, retire by individual file paths
156
+ for _, group in incompatible.iterrows():
157
+ file_paths = group["file_paths"]
158
+
159
+ # Convert file_paths to list if it's not already (handle different pandas array types)
160
+ if hasattr(file_paths, "tolist"):
161
+ file_paths_list = file_paths.tolist()
162
+ elif isinstance(file_paths, str):
163
+ # Single file path case
164
+ file_paths_list = [file_paths]
165
+ else:
166
+ file_paths_list = list(file_paths)
167
+
168
+ retirement_messages = []
169
+ partitions_retired = 0
170
+ partitions_failed = 0
171
+
172
+ # Retire each partition individually using the targeted UDF
173
+ for file_path in file_paths_list:
174
+ if not file_path or pd.isna(file_path):
175
+ continue
176
+
177
+ try:
178
+ # Use the new retire_partition_by_file UDF
179
+ retirement_sql = (
180
+ f"SELECT retire_partition_by_file('{file_path}') as message"
181
+ )
182
+ retirement_result = client.query(retirement_sql)
183
+
184
+ if not retirement_result.empty:
185
+ message = retirement_result["message"].iloc[0]
186
+ retirement_messages.append(message)
187
+
188
+ if message.startswith("SUCCESS:"):
189
+ partitions_retired += 1
190
+ else:
191
+ partitions_failed += 1
192
+ print(f"Warning: Failed to retire {file_path}: {message}")
193
+ else:
194
+ partitions_failed += 1
195
+ retirement_messages.append(
196
+ f"ERROR: No result returned for {file_path}"
197
+ )
198
+
199
+ except Exception as e:
200
+ partitions_failed += 1
201
+ error_msg = f"ERROR: Exception retiring {file_path}: {e}"
202
+ retirement_messages.append(error_msg)
203
+ print(f"Error retiring partition {file_path}: {e}")
204
+
205
+ # Calculate storage freed (only count successful retirements)
206
+ if partitions_retired > 0 and group["partition_count"] > 0:
207
+ # Proportional calculation based on successful retirements
208
+ storage_freed = int(
209
+ group["total_size_bytes"]
210
+ * (partitions_retired / group["partition_count"])
211
+ )
212
+ else:
213
+ storage_freed = 0
214
+
215
+ # Record retirement results for this group
216
+ results.append(
217
+ {
218
+ "view_set_name": group["view_set_name"],
219
+ "view_instance_id": group["view_instance_id"],
220
+ "partitions_retired": partitions_retired,
221
+ "partitions_failed": partitions_failed,
222
+ "storage_freed_bytes": storage_freed,
223
+ "retirement_messages": retirement_messages,
224
+ }
225
+ )
226
+
227
+ return pd.DataFrame(results)