Skip to content
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

ccl配置咨询,我们想like参与方的某个字段,但是这个字段不能出现在select语句中,防止明细数据泄露,只是想在sql执行过程中使用like进行字段筛选 #417

Open
EtanWatson opened this issue Dec 17, 2024 · 1 comment

Comments

@EtanWatson
Copy link

select b.device_number from alice.a join bob.b on a.main_device_number=b.device_number where a.user_id like "121%"
ccl配置
b.device_number的ccl配置alice:PLAINTEXT_AFTER_JOIN,bob:PLAINTEXT,
a.main_device_number配置alice:PLAINTEXT,bob:PLAINTEXT_AS_JOIN_PAYLOAD
a.user_id配置的alice:PLAINTEXT,bob:PLAINTEXT_AFTER_COMPARE
使用bob视角执行,执行过程中:
joinNode.buildCCL: join on condition (eq(alice.a.main_device_number, bob.b.device_number)) failed: column(alice.a.main_device_number) ccl(UNKNOWN) for party(bob) does not belong to (PLAINTEXT_AFTER_JOIN, PLAINTEXT)

@jingshi-ant
Copy link
Collaborator

您好,目前CCL还没有覆盖like operator,建议尝试使用 substring(a.user_id, 1, 3) = "121"之类的等价表达,然后保持当前的PLAINTEXT_AFTER_COMPARE配置即可

@secretflow secretflow deleted a comment from lanyy9527 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants