Skip to content

Commit

Permalink
Set the correct object type for InputTable
Browse files Browse the repository at this point in the history
  • Loading branch information
jmao-denver committed Mar 12, 2024
1 parent 5838bb2 commit 940f7d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions py/server/deephaven/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from deephaven.updateby import UpdateByOperation

# Table
_J_Table = jpy.get_type("io.deephaven.engine.table.Table")
_JTable = jpy.get_type("io.deephaven.engine.table.Table")
_JAttributeMap = jpy.get_type("io.deephaven.engine.table.AttributeMap")
_JTableTools = jpy.get_type("io.deephaven.engine.util.TableTools")
_JColumnName = jpy.get_type("io.deephaven.api.ColumnName")
Expand Down Expand Up @@ -426,7 +426,7 @@ class Table(JObjectWrapper):
data ingestion operations, queries, aggregations, joins, etc.
"""
j_object_type = _J_Table
j_object_type = _JTable

def __init__(self, j_table: jpy.JType):
self.j_table = jpy.cast(j_table, self.j_object_type)
Expand Down
3 changes: 2 additions & 1 deletion py/server/deephaven/table_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
_JTableFactory = jpy.get_type("io.deephaven.engine.table.TableFactory")
_JTableTools = jpy.get_type("io.deephaven.engine.util.TableTools")
_JDynamicTableWriter = jpy.get_type("io.deephaven.engine.table.impl.util.DynamicTableWriter")
_JBaseArrayBackedInputTable = jpy.get_type("io.deephaven.engine.table.impl.util.BaseArrayBackedInputTable")
_JAppendOnlyArrayBackedInputTable = jpy.get_type(
"io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedInputTable")
_JKeyedArrayBackedInputTable = jpy.get_type("io.deephaven.engine.table.impl.util.KeyedArrayBackedInputTable")
Expand All @@ -32,7 +33,6 @@
_JRingTableTools = jpy.get_type("io.deephaven.engine.table.impl.sources.ring.RingTableTools")
_JSupplier = jpy.get_type('java.util.function.Supplier')
_JFunctionGeneratedTableFactory = jpy.get_type("io.deephaven.engine.table.impl.util.FunctionGeneratedTableFactory")
_JInputTableStatusListener = jpy.get_type("io.deephaven.engine.util.input.InputTableStatusListener")


def empty_table(size: int) -> Table:
Expand Down Expand Up @@ -235,6 +235,7 @@ class InputTable(Table):
Users should always create InputTables through factory methods rather than directly from the constructor.
"""
j_object_type = _JBaseArrayBackedInputTable

def __init__(self, j_table: jpy.JType):
super().__init__(j_table)
Expand Down

0 comments on commit 940f7d7

Please sign in to comment.