Skip to content

Feat/sql assets#115

Open
dmoore247 wants to merge 8 commits intomainfrom
feat/sql-assets
Open

Feat/sql assets#115
dmoore247 wants to merge 8 commits intomainfrom
feat/sql-assets

Conversation

@dmoore247
Copy link
Collaborator

Add View URL sql function which differentiates on Modality and Image type.
Encapsulate "Cohort Builder" query for re-usability (e.g. Genie)

This PR replaces #114
Add DDL, update DDL installer, update dashboard

dmoore247 added 2 commits June 11, 2025 23:51
Add Cohort Builder as re-usable TVF, update dashboard and installer.
LANGUAGE SQL
DETERMINISTIC
COMMENT "TVF wrapper around object_catalog"
RETURN SELECT
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shall we make this compatible with variants? Adding cast operator should make it work and retrocompatible, "::String"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, I think not. Let's combine the variant changes.

"# Install all the upfront DDL\n",
"from dbx.pixels import Catalog\n",
"catalog = Catalog(spark,table=\"hls_radiology.tcia.object_catalog\")\n",
"catalog._init_tables()"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could move the init_tables function in the Catalog.__ init__ so this will not be needed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a (not so?) weird feelings about doing heavy weight operations in a class constructor. Let me look again.

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