Replies: 13 comments 7 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.
-
Is your feature request related to a problem? Please describe.
Today
qsv join
allows 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|endswith
Describe 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