-
Notifications
You must be signed in to change notification settings - Fork 91
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
have file_stem accept a full path #284
Conversation
Deploying datachain-documentation with Cloudflare Pages
|
stem=path.file_stem(path.name(C("file.path"))), | ||
ext=path.file_ext(path.name(C("file.path"))), | ||
stem=path.file_stem(C("file.path")), | ||
ext=path.file_ext(C("file.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.
[F] This accepted a full path already
Will need a studio companion PR. |
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, thanks for adding this! Although, I would recommend only merging once the Studio/ClickHouse part is done and those tests pass as well.
yeah, I'm a bit stuck. The companion is up (https://github.com/iterative/studio/pull/10469) but the Studio tests are completely borked (see #292 / #293). I'll wait til we get a decision or a proper fix. |
Yeah, that is less than ideal - if all the tests pass except those that were already broken, that's fine by me. (Although ideally these tests should be fixed on |
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.
Looks good to me! Thank you! 🙏
c5d7295
to
0d18b13
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #284 +/- ##
=======================================
Coverage 86.85% 86.86%
=======================================
Files 90 90
Lines 9868 9874 +6
Branches 1995 1995
=======================================
+ Hits 8571 8577 +6
Misses 947 947
Partials 350 350
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
blocked by https://github.com/iterative/studio/pull/10469 which is blocked by https://github.com/iterative/studio/pull/10480 |
6c3c65d
to
db0b454
Compare
db0b454
to
c95626d
Compare
Follow up to https://github.com/iterative/datachain/pull/101/files#r1697409039 and https://github.com/iterative/datachain/pull/101/files#r1709153373
This PR updates the compiled
file_stem
function to accept a full path instead of expecting users to writepath.file_stem(path.name(C("file.path")))
. This change leads to (slightly) better SQL being generated as well.For comparison I've put the current and newly generated SQL below:
Before PR
After PR
... as you can see the SQL is still hot garbage but there is less of it and the UX is slightly better