Skip to content

Commit

Permalink
Add support for converting stream tables to append from python. (#1090)
Browse files Browse the repository at this point in the history
* Add support for converting stream tables to append from python.

* Followup to review comments.

* Followup to review commetns, for realz this time.
  • Loading branch information
jcferretti authored Aug 19, 2021
1 parent 41cd9a3 commit 152b2b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,12 @@ def simple(column_name:str, data_type_str:str = 'string'):
return _java_type_.simpleSpec(column_name, data_type)


@_passThrough
def streamTableToAppendTable(t):
return _stream_table_tools_.streamToAppendOnlyTable(t)

# Define all of our functionality, if currently possible
try:
_defineSymbols()
except Exception as e:
pass

5 changes: 4 additions & 1 deletion Integrations/python/deephaven/KafkaTools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,15 @@ def simple(column_name:str, data_type_str:str = 'string'):
return _java_type_.simpleSpec(column_name, data_type)


@_passThrough
def streamTableToAppendTable(t):
return _stream_table_tools_.streamToAppendOnlyTable(t)

# Define all of our functionality, if currently possible
try:
_defineSymbols()
except Exception as e:
pass

@_passThrough
def avroSchemaToColumnDefinitions(*args):
"""
Expand Down

0 comments on commit 152b2b8

Please sign in to comment.