Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f01b7c6
GH-41179: [Docs] Documentation for Dissociated IPC Protocol
zeroshade Apr 12, 2024
e706979
updates from feedback
zeroshade Apr 15, 2024
b05a3aa
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
4739f36
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
99d4e1a
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
288828f
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
bbb0b9d
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
6e1bd48
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
862420f
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
0d8d298
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 16, 2024
8f827d8
Apply suggestions from code review
zeroshade Apr 16, 2024
f92ff3d
updates from feedback
zeroshade Apr 16, 2024
3ceb343
formatting fixes
zeroshade Apr 16, 2024
298f803
more formatting fixes
zeroshade Apr 17, 2024
feb5eb1
some formatting changes
zeroshade Apr 17, 2024
d24eef3
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 22, 2024
c6ca46b
Update docs/source/format/DissociatedIPC.rst
zeroshade Apr 22, 2024
be46c3a
update diagrams from feedback
zeroshade Apr 22, 2024
77b4bd1
add mermaid sphinx extension plus more diagrams
zeroshade Apr 23, 2024
8a8cbb4
trampoline to avoid chrome dependency
zeroshade Apr 24, 2024
668d5be
fix license
zeroshade Apr 24, 2024
6137525
screwed up the python path handling
zeroshade Apr 24, 2024
6f44259
AHA dependency issues possibly solved?
zeroshade Apr 24, 2024
86b553c
update url for reference example impl
zeroshade Apr 25, 2024
c2238fb
updates from feedback
zeroshade Apr 26, 2024
74acc1c
no need for asound anymore
zeroshade May 9, 2024
ab4bbe6
trim whitespace
zeroshade May 9, 2024
a8f83f9
remove duplicate
zeroshade May 9, 2024
c063aae
trinm whitespace
zeroshade May 9, 2024
ccf1c87
newline at end of file
zeroshade May 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/source/format/Columnar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,8 @@ includes a serialized Flatbuffer type along with an optional message
body. We define this message format before describing how to serialize
each constituent IPC message type.

.. _ipc-message-format:

Encapsulated message format
---------------------------

Expand Down
403 changes: 403 additions & 0 deletions docs/source/format/DissociatedIPC.rst

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions docs/source/format/DissociatedIPC/ClientFlowchart.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
%% Licensed to the Apache Software Foundation (ASF) under one
%% or more contributor license agreements. See the NOTICE file
%% distributed with this work for additional information
%% regarding copyright ownership. The ASF licenses this file
%% to you under the Apache License, Version 2.0 (the
%% "License"); you may not use this file except in compliance
%% with the License. You may obtain a copy of the License at

%% http://www.apache.org/licenses/LICENSE-2.0

%% Unless required by applicable law or agreed to in writing,
%% software distributed under the License is distributed on an
%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
%% KIND, either express or implied. See the License for the
%% specific language governing permissions and limitations
%% under the License.

graph LR
client((Client))-->c1{{Send #60;want_data#gt; Msg}}
subgraph meta [Meta Message]
direction LR
m1[/Msg Type #40;byte 0#41;<br/>Seq Num #40;bytes 1-5#41;/]-- type 1 -->m2[[Process IPC Header]]
m2-- IPC has body -->m3[Get Corresponding<br/>Tagged Msg]
m2-- Schema Msg -->m4[/Store Schema/]
m1-- type 0 -->e[Indicate End of Stream]
end
subgraph data [Data Stream]
direction LR
d1[Request Msg<br/>for Seq Num]-->d2{Most Significant<br/>Byte}
d2-- 0 -->d3[Construct from<br/>Metadata and Body]
d2-- 1 -->d4[Get shared/remote<br/>buffers]
d4 -->d5[Construct from<br/>Metadata and buffers]
d3 & d5 -->e2[Output Batch]
end

client -- recv untagged msg --> meta
client -- get tagged msg --> data
43 changes: 43 additions & 0 deletions docs/source/format/DissociatedIPC/SequenceDiagramSame.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
%% Licensed to the Apache Software Foundation (ASF) under one
%% or more contributor license agreements. See the NOTICE file
%% distributed with this work for additional information
%% regarding copyright ownership. The ASF licenses this file
%% to you under the Apache License, Version 2.0 (the
%% "License"); you may not use this file except in compliance
%% with the License. You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing,
%% software distributed under the License is distributed on an
%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
%% KIND, either express or implied. See the License for the
%% specific language governing permissions and limitations
%% under the License.

sequenceDiagram
participant C as Client
participant S as Server
activate C
C-->>+S: TaggedMessage(server.want_data, bytes=ID_of_desired_data)
S-->>C: Message(bytes([1]) + le_bytes(sequence_number) + schema_metadata)
par
loop each chunk
S-->>C: Message(bytes([1]) + le_bytes(sequence_number) + batch_metadata)
end
S-->>C: Message(bytes([0]) + le_bytes(sequence_number))
and
loop each chunk
alt
S-->>C: TaggedMessage((bytes[0] << 55) | le_bytes(sequence_number),<br/>bytes=batch_data)
else
S-->>C: TaggedMessage((bytes[1] << 55) | le_bytes(sequence_number),<br/>bytes=uint64_pairs)
end
end
end

loop
C-->>S: TaggedMessage(server.free_data, bytes=uint64_list)
end
deactivate S
deactivate C
44 changes: 44 additions & 0 deletions docs/source/format/DissociatedIPC/SequenceDiagramSeparate.mmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
%% Licensed to the Apache Software Foundation (ASF) under one
%% or more contributor license agreements. See the NOTICE file
%% distributed with this work for additional information
%% regarding copyright ownership. The ASF licenses this file
%% to you under the Apache License, Version 2.0 (the
%% "License"); you may not use this file except in compliance
%% with the License. You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing,
%% software distributed under the License is distributed on an
%% "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
%% KIND, either express or implied. See the License for the
%% specific language governing permissions and limitations
%% under the License.

sequenceDiagram
participant D as Data Stream
participant C as Client
participant M as Metadata Stream

activate C
C-->>+M: TaggedMessage(server.want_data, bytes=ID_of_desired_data)
C-->>+D: TaggedMessage(server.want_data, bytes=ID_of_desired_data)
M-->>C: Message(bytes([1]) + le_bytes(sequence_number) + schema_metadata)
loop each batch
par
M-->>C: Message(bytes([1]) + le_bytes(sequence_number) + batch_metadata)
and
alt
D-->>C: TaggedMessage((bytes[0] << 55) | le_bytes(sequence_number),<br/>bytes=batch_data)
else
D-->>C: TaggedMessage((bytes[1] << 55) | le_bytes(sequence_number),<br/>bytes=uint64_pairs)
end
end
end
M-->>C: Message(bytes([0]) + le_bytes(sequence_number))
deactivate M
loop
C-->>D: TaggedMessage(server.free_data, bytes=uint64_list)
end
deactivate D
deactivate C
2 changes: 2 additions & 0 deletions docs/source/format/Flight.rst
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ well, in which case any `authentication method supported by gRPC

.. _Mutual TLS (mTLS): https://grpc.io/docs/guides/auth/#supported-auth-mechanisms

.. _flight-location-uris:

Location URIs
=============

Expand Down
1 change: 1 addition & 0 deletions docs/source/format/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Specifications
CDataInterface
CStreamInterface
CDeviceDataInterface
DissociatedIPC
Flight
FlightSql
ADBC
Expand Down