We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DataChain.compare()
Try refactoring DataChain.compare() without using SQLAlchemy. So, it would be something like this:
from datachain.func import _case, _if l = dc1.mutate(ldiff=1) r = dc2.mutate(rdiff=1) dc_diff = ( l.join(r, on="id") .mutate(d1=_case(_isnon(ldiff), "A", "D") ) .mutate(d2=_case(_isnon(rdiff), "A", "D") ) .mutate(diff=_case(d1!=d2, "A", "D") ) .select_except("d1", "d2", "ldiff", "rdiff") )
Important: test performance on large dataset and compare with current implementation
The text was updated successfully, but these errors were encountered:
ilongin
No branches or pull requests
Try refactoring
DataChain.compare()
without using SQLAlchemy. So, it would be something like this:Important: test performance on large dataset and compare with current implementation
The text was updated successfully, but these errors were encountered: