Skip to content

[python][ray] Fix count metadata for row-level authorization - #9681

Open
QuakeWang wants to merge 2 commits into
apache:masterfrom
QuakeWang:ray-auth-count
Open

[python][ray] Fix count metadata for row-level authorization#9681
QuakeWang wants to merge 2 commits into
apache:masterfrom
QuakeWang:ray-auth-count

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

RayDatasource falls back to physical row counts when logical counts are unknown. This can make Ray count() return unfiltered counts for tables with row-level authorization.

Preserve unknown counts as None and retain exact zero counts, so Ray counts filtered output when necessary.

Tests

  • 88 tests passed across ray_integration_test.py, ray_data_test.py, and table_query_auth_test.py on Ray 2.54.0.
  • All 8 reproduction and control scenarios passed.
  • Python Flake8, license checks, and git diff --check passed.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
@XiaoHongbo-Hope

Copy link
Copy Markdown
Contributor

+1

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

Successfully merging this pull request may close these issues.

2 participants