Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Feature/#815- Filter database datanodes should not read all data #820

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

trgiangdo
Copy link
Member

Copy link

github-actions bot commented Nov 7, 2023

☂️ Python Cov

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8235 7804 95% 85% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/taipy/core/data/_abstract_sql.py 89% 🟢
src/taipy/core/data/data_node.py 99% 🟢
src/taipy/core/data/mongo.py 91% 🟢
src/taipy/core/data/sql.py 97% 🟢
src/taipy/core/data/sql_table.py 98% 🟢
TOTAL 95% 🟢

updated for commit: 0a2a587 by action🐍

@@ -441,6 +440,10 @@ def __getitem__(self, item):
def _read(self):
raise NotImplementedError

@abstractmethod
def _read_by(self, operators: Union[List, Tuple], join_operator=JoinOperator.AND):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't you override the filter method directly instead of going through a _read_by method that is eventually not implemented?
It is possible to override the filter method in MongoCollectionDataNode and not in CsvDataNode, for instance.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason is that I completely forgot 🤣

@trgiangdo trgiangdo requested a review from jrobinAV November 8, 2023 07:39
@trgiangdo trgiangdo merged commit 76ed789 into develop Nov 8, 2023
41 of 42 checks passed
@trgiangdo trgiangdo deleted the feature/#815-integrate-filter-to-db-query branch November 8, 2023 12:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants