-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hand-wrap TableReplayer/DynamicTableWriter/TableLoggers, fixes #1944 #1949
Conversation
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just reviewed DyamicTableWriter.java.
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Outdated
Show resolved
Hide resolved
858cd42
to
da0bf74
Compare
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only looked at the jpy / c stuff for now, but I don't think it's safe as-is.
3c0b551
to
15b9b29
Compare
e170b68
to
eca12a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a partial review.
py/jpy-integration/src/javaToPython/java/io/deephaven/jpy/integration/MyNumbersBoxed.java
Show resolved
Hide resolved
py/jpy-integration/src/javaToPython/java/io/deephaven/jpy/integration/MyNumbersNumber.java
Show resolved
Hide resolved
py/jpy-integration/src/javaToPython/java/io/deephaven/jpy/integration/MyNumbersObject.java
Show resolved
Hide resolved
py/jpy-integration/src/javaToPython/java/io/deephaven/jpy/integration/MyNumbersPrimitive.java
Show resolved
Hide resolved
py/jpy-integration/src/javaToPython/python/io/deephaven/jpy/integration/my_numbers.py
Show resolved
Hide resolved
py/jpy-integration/src/javaToPython/java/io/deephaven/jpy/integration/PyLibTest.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/util/PythonScopeJpyImpl.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Show resolved
Hide resolved
engine/table/src/main/java/io/deephaven/engine/table/impl/util/DynamicTableWriter.java
Outdated
Show resolved
Hide resolved
Also made TableLogger Pep8 compliant and renamed it to perfmon
Given the choice, users will be drawn to use the convenience methods logRow() in DynamicTableWriter which accept generic java.lang.Object in the input parameters. So there is a chance the numeric values don't match the declared Column data type are passed in. As performance isn't really a big concern here, we can afford to perform conversions and make it easier for the users than require them to do cast/conversion before calling the methods.
The PermissiveRowSetter extends RowSetter with an addtional method that allows unsafe numeric conversion. The setPermissive() is only called by logRow() convenience overloads which are only used by the Python API.
Added the functions in those modules to perfmon Todo: consult Cristian to ensure the docs are accurate and clear and also get answers about the need of some of the functions in DHC
00dc6db
to
07e0efe
Compare
pyintegration/deephaven2/replay.py
Outdated
self._j_replayer.shutdown() | ||
self._hist_tables = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the shutdown call still be here, but the self._hist_tables
be gone?
fixes #1944 #2004 #1730