-
Notifications
You must be signed in to change notification settings - Fork 89
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
Finish SQL functions refactoring #543
base: main
Are you sure you want to change the base?
Conversation
Deploying datachain-documentation with Cloudflare Pages
|
04c16a5
to
00cdb0d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #543 +/- ##
==========================================
- Coverage 87.41% 87.08% -0.33%
==========================================
Files 106 111 +5
Lines 10279 10511 +232
Branches 1377 1423 +46
==========================================
+ Hits 8985 9154 +169
- Misses 953 1005 +52
- Partials 341 352 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
83cbb49
to
26fb69c
Compare
26fb69c
to
21a9923
Compare
@@ -4,7 +4,7 @@ | |||
from pydantic import BaseModel | |||
|
|||
from datachain import C, DataChain, File | |||
from datachain.sql.functions import path | |||
from datachain.lib.func import path |
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.
[Q] Do we want to import func
from datachain instead?
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.
** same for all examples - I don't think it matters which approach we take but consistency between examples would be good
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.
right. lib
needs to be deprecated. User should import like from datachain.func import path
@@ -20,8 +20,8 @@ | |||
from datachain.data_storage.schema import convert_rows_custom_column_types | |||
from datachain.data_storage.serializer import Serializable | |||
from datachain.dataset import DatasetRecord, StorageURI | |||
from datachain.lib.func.inner import path as pathfunc |
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.
[Q] What is the difference between datachain.lib.func
& datachain.lib.func.inner
? When would you use one and not the other?
datachain.sql.functions
todatachain.lib.func
(hidesql
from user).