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

Update LuxSQLTable __len__() and metadata computation"" #331

Merged
merged 2 commits into from
Apr 7, 2021

Conversation

thyneb19
Copy link
Contributor

@thyneb19 thyneb19 commented Mar 27, 2021

Overview

Added len() function capability to the LuxSQLTable and updated metadata handling.

Changes

Made changes to the LuxSQLTable to enable len(sql_tbl) functionality. Updated references to the sql_tbl._length parameter throughout the code to be replaced by len(sql_tbl). Making these changes also required updating the metadata calculation process for the LuxSQLTable.

During the initial setup of the LuxSQLTable, it needs to have the same len() functionality as the LuxDataFrame. Added a boolean parameter to keep track of which part of setup a LuxSQLTable is in, and this informs len() to either return sql_tbl._length or the parent class' len().

@thyneb19 thyneb19 requested a review from dorisjlee March 27, 2021 19:06
@thyneb19 thyneb19 changed the title Revert "Revert "Update LuxSQLTable __len__() and metadata computation"" Update LuxSQLTable __len__() and metadata computation"" Mar 27, 2021
Updated _is_datetime_number() in the PandasExecutor to use the is_integer_dtype() function to check if a series is of int dtype.

Cleaned up SQLExecutor checks in frame.py
@dorisjlee dorisjlee merged commit db736d1 into lux-org:sql-engine Apr 7, 2021
@dorisjlee
Copy link
Member

This looks great, thanks @thyneb19 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants