Skip to content
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

Refactored away TableTools module, fixes #1553 #1631

Merged
merged 16 commits into from
Jan 5, 2022

Conversation

jmao-denver
Copy link
Contributor

  1. split TableTools functionality into table_factory.py, dtypes.py, column.py, table.py
  2. added docstrings
  3. added test cases

Changed to use empty_table instead of time_table to avoid a lock issue
using subTest will make test failures easier to identify in group tests
The poorly named variable is the result of the recent db module
refactoring project that renamed/moved the corresponing java class to
a differnt package.
Decided against support Table diff() method for now due to the
confusing max_diff param.
pyintegration/deephaven2/__init__.py Show resolved Hide resolved
pyintegration/deephaven2/column.py Show resolved Hide resolved
pyintegration/deephaven2/column.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/column.py Show resolved Hide resolved
pyintegration/deephaven2/column.py Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
1. beefed up the tests
2. bug fixes
3. cleaned up pydoc
@jmao-denver jmao-denver requested a review from chipkent December 16, 2021 16:30
pyintegration/deephaven2/constants.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/table.py Show resolved Hide resolved
pyintegration/tests/test_constants.py Outdated Show resolved Hide resolved
pyintegration/tests/test_constants.py Show resolved Hide resolved
pyintegration/deephaven2/constants.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Show resolved Hide resolved
devinrsmith and others added 5 commits December 21, 2021 11:33
and expanded the unit test to cover them all
1. added classmethod from_jtype in DType to support reverse lookup
2. fixed a bug in building a table's column defs
3. minor fixes in boostrap.py to make it work in the new project
structure
4. added a testcase to verify Column's component_type set correctly
for array type columns
1. Added a 'remap' parameter to the method to allow the users to provide
a callable for mapping special DH values such as NULL_LONG etc.
2. With the abstraction introduced by the above chagne, there is no
need to create type specific concrete mapping capability ourselves
and that leads to the removal of sub types of DType
3. However, CharDType is kept to make the conversion from Python str to
Java char array easier for the users with the default remap callable
set to Python built-in ord
@pete-petey pete-petey modified the milestones: Dec 2021, Jan 2022 Dec 29, 2021
tested the case of downcast from double to float generating inf
@jmao-denver jmao-denver requested a review from chipkent January 3, 2022 15:50
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/deephaven2/dtypes.py Outdated Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Show resolved Hide resolved
pyintegration/tests/test_dtypes.py Show resolved Hide resolved
jmao-denver and others added 2 commits January 5, 2022 09:30
one  minor change in the docstring and some improvments to test_dtypes
@jmao-denver jmao-denver requested a review from chipkent January 5, 2022 17:29
@jmao-denver jmao-denver merged commit cd63cba into deephaven:main Jan 5, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 5, 2022
@jmao-denver jmao-denver deleted the f-1553 branch February 8, 2023 18:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants