Skip to content

Commit

Permalink
Remove changes for dev/debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Sep 4, 2024
1 parent 40ba24d commit d6668cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion py/client/pydeephaven/_arrow_flight_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def import_table(self, data: pa.Table) -> Table:
try:
if not isinstance(data, (pa.Table, pa.RecordBatch)):
raise DHError("source data must be either a pa table or RecordBatch.")
ticket = self.session.get_ticket_no()
ticket = self.session.next_export_ticket_no()
dh_fields = []
for f in data.schema:
dh_fields.append(pa.field(name=f.name, type=f.type, metadata=map_arrow_type(f.type)))
Expand Down
4 changes: 2 additions & 2 deletions py/client/pydeephaven/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,11 @@ def plugin_object_service(self) -> PluginObjService:

def make_export_ticket(self, ticket_no=None) -> ExportTicket:
if not ticket_no:
ticket_no = self.get_ticket_no()
ticket_no = self.next_export_ticket_no()
ticket_bytes = ticket_no.to_bytes(4, byteorder='little', signed=True)
return ExportTicket(ticket_bytes=b'e' + ticket_bytes)

def get_ticket_no(self) -> int:
def next_export_ticket_no(self) -> int:
with self._r_lock:
self._last_ticket += 1
if self._last_ticket == 2 ** 31 - 1:
Expand Down

0 comments on commit d6668cc

Please sign in to comment.