-
Notifications
You must be signed in to change notification settings - Fork 97
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
merge/join: exclude sys signals #120
Conversation
Deploying datachain-documentation with Cloudflare Pages
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #120 +/- ##
==========================================
+ Coverage 85.69% 85.70% +0.01%
==========================================
Files 93 93
Lines 9477 9485 +8
Branches 1891 1893 +2
==========================================
+ Hits 8121 8129 +8
Misses 1024 1024
Partials 332 332
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
THank you for quick turnaround! Really appreciate that.
There is a question about exposed sys signals.
@@ -92,7 +92,7 @@ def test_merge_similar_objects(catalog): | |||
rname = "qq" | |||
ch = ch1.merge(ch2, "emp.person.name", rname=rname) | |||
|
|||
assert list(ch.signals_schema.values.keys()) == ["emp", rname + "emp"] | |||
assert list(ch.signals_schema.values.keys()) == ["sys", "emp", rname + "emp"] |
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.
Are we exposing sys to user? We shouldn't .
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.
signals_schema
always include sys
signals, and signals_schema
is not public.
So, no, it's not exposed to users.
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.
Great! Accepting the change.
@@ -116,7 +116,13 @@ def test_merge_values(catalog): | |||
|
|||
ch = ch1.merge(ch2, "id") | |||
|
|||
assert list(ch.signals_schema.values.keys()) == ["id", "descr", "right_id", "time"] | |||
assert list(ch.signals_schema.values.keys()) == [ | |||
"sys", |
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.
The same. User should never see sys id (when it was not requested).
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.
@skshetry thank you again! It was super quick 🚀
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.
LGTM
Fixes #114.
For now, I am going to ignore
sys
signals even ifsettings(sys=True)
is passed.