Commit 062429b 1 parent ec5c864 commit 062429b Copy full SHA for 062429b
File tree 6 files changed +32
-0
lines changed
crates/storage-query-datafusion/src
6 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ const SYS_INVOCATION_VIEW: &str = "CREATE VIEW sys_invocation as SELECT
46
46
ss.invoked_by_id,
47
47
ss.invoked_by_target,
48
48
ss.pinned_deployment_id,
49
+ ss.pinned_service_protocol_version,
49
50
ss.trace_id,
50
51
ss.journal_size,
51
52
ss.created_at,
Original file line number Diff line number Diff line change @@ -32,4 +32,18 @@ pub(crate) fn append_deployment_row(
32
32
33
33
row. endpoint ( format_using ( output, & deployment. metadata . address_display ( ) ) ) ;
34
34
row. created_at ( deployment. metadata . created_at . as_u64 ( ) as i64 ) ;
35
+ row. min_service_protocol_version (
36
+ deployment
37
+ . metadata
38
+ . supported_protocol_versions
39
+ . start ( )
40
+ . unsigned_abs ( ) ,
41
+ ) ;
42
+ row. max_service_protocol_version (
43
+ deployment
44
+ . metadata
45
+ . supported_protocol_versions
46
+ . end ( )
47
+ . unsigned_abs ( ) ,
48
+ ) ;
35
49
}
Original file line number Diff line number Diff line change @@ -26,4 +26,10 @@ define_table!(sys_deployment(
26
26
27
27
/// Timestamp indicating the deployment registration time.
28
28
created_at: DataType :: Date64 ,
29
+
30
+ /// Minimum supported protocol version.
31
+ min_service_protocol_version: DataType :: UInt32 ,
32
+
33
+ /// Maximum supported protocol version.
34
+ max_service_protocol_version: DataType :: UInt32
29
35
) ) ;
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ fn fill_in_flight_invocation_metadata(
110
110
// journal_metadata and stats are filled by other functions
111
111
if let Some ( pinned_deployment) = meta. pinned_deployment {
112
112
row. pinned_deployment_id ( pinned_deployment. deployment_id . to_string ( ) ) ;
113
+ row. pinned_service_protocol_version (
114
+ pinned_deployment
115
+ . service_protocol_version
116
+ . as_repr ( )
117
+ . unsigned_abs ( ) ,
118
+ ) ;
113
119
}
114
120
fill_invoked_by ( row, output, meta. source )
115
121
}
Original file line number Diff line number Diff line change @@ -67,6 +67,10 @@ define_table!(sys_invocation_status(
67
67
/// this invocation.
68
68
pinned_deployment_id: DataType :: LargeUtf8 ,
69
69
70
+ /// The negotiated protocol version used for this invocation.
71
+ /// This gets set after the first journal entry has been stored for this invocation.
72
+ pinned_service_protocol_version: DataType :: UInt32 ,
73
+
70
74
/// The ID of the trace that is assigned to this invocation. Only relevant when tracing is
71
75
/// enabled.
72
76
trace_id: DataType :: LargeUtf8 ,
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ pub fn sys_invocation_table_docs() -> OwnedTableDocs {
101
101
sys_invocation_status. remove( "invoked_by_id" ) . expect( "invoked_by_id should exist" ) ,
102
102
sys_invocation_status. remove( "invoked_by_target" ) . expect( "invoked_by_target should exist" ) ,
103
103
sys_invocation_status. remove( "pinned_deployment_id" ) . expect( "pinned_deployment_id should exist" ) ,
104
+ sys_invocation_status. remove( "pinned_service_protocol_version" ) . expect( "pinned_service_protocol_version should exist" ) ,
104
105
sys_invocation_status. remove( "trace_id" ) . expect( "trace_id should exist" ) ,
105
106
sys_invocation_status. remove( "journal_size" ) . expect( "journal_size should exist" ) ,
106
107
sys_invocation_status. remove( "created_at" ) . expect( "created_at should exist" ) ,
You can’t perform that action at this time.
0 commit comments