Replies: 16 comments 11 replies
-
|
Thanks for the detailed request @terefang . Out of curiosity, have you tried the |
Beta Was this translation helpful? Give feedback.
-
|
if i understand |
Beta Was this translation helpful? Give feedback.
-
|
just tried out sqlp. The error Message is "Unsupported SQL join constraint" for |
Beta Was this translation helpful? Give feedback.
-
|
Hi @terefang , given that |
Beta Was this translation helpful? Give feedback.
-
|
Hi @terefang , I created some tests illustrating how to do joins per your request using They both use cross joins though... |
Beta Was this translation helpful? Give feedback.
-
|
Where are the tests? |
Beta Was this translation helpful? Give feedback.
-
|
They're here @ondohotola |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
Closing this for now... FYI, I did try to extend I also attempted to do it in As Polars SQL expands over time, I'll revisit this. |
Beta Was this translation helpful? Give feedback.
-
|
i will test this after my vacation |
Beta Was this translation helpful? Give feedback.
-
|
In the interim, I created a discussion based on your original request so other users can find the workarounds. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @terefang , can you give it a try with qsv v2.2.1? Also, what does Also, how big are the files? Number of rows? Number of columns? File size? |
Beta Was this translation helpful? Give feedback.
-
will update to 2.2.1 and post result |
Beta Was this translation helpful? Give feedback.
-
|
i tested the command from above with the exact same data files: |
Beta Was this translation helpful? Give feedback.
-
|
log from running with RUST_BACKTRACE=1 QSV_LOG_LEVEL=debug |
Beta Was this translation helpful? Give feedback.
-
|
You're on qsv v2.2.1. Can you try on v3.1.1? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
Today
qsv joinallows a full complement of structural join options (left, right, outer, etc etc) but only a "case-insensitive" match option.for the following use cases (join criteria), i had to import/join/export via sqlite instead of using the excellent qsv:
right_val LIKE CONCAT(left_val,'%')right_val LIKE CONCAT('%',left_val,'%')right_val LIKE CONCAT('%',left_val)left_val LIKE CONCAT(right_val,'%')left_val LIKE CONCAT('%',right_val,'%')left_val LIKE CONCAT('%',right_val)Describe the solution you'd like
--match-direction=LTR|RTL--match-type=startswith|contains|endswithDescribe alternatives you've considered
the current workaround is to import both csv files into sqlite and export the joined product.
Beta Was this translation helpful? Give feedback.
All reactions