Skip to content

Update advanced templates to use schemas#192

Open
bbqiu wants to merge 14 commits intodatabricks:mainfrom
bbqiu:bbqiu/schema-for-memory
Open

Update advanced templates to use schemas#192
bbqiu wants to merge 14 commits intodatabricks:mainfrom
bbqiu:bbqiu/schema-for-memory

Conversation

@bbqiu
Copy link
Copy Markdown
Contributor

@bbqiu bbqiu commented Apr 17, 2026

relies on databricks/databricks-ai-bridge#415

  • update advanced templates to start using schemas. this will prevent SPs from requiring explicit permission grants to the public schema

bbqiu added 3 commits April 16, 2026 14:50
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
@bbqiu bbqiu requested a review from dhruv0811 April 17, 2026 22:04
Copy link
Copy Markdown
Contributor

@dhruv0811 dhruv0811 left a comment

Choose a reason for hiding this comment

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

Left some comments!

A little confused about what we want the default behavior to look like now? Custom schema out of the box, or is it opt-in?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Commenting as a reminder to remove after #415 gets merged

keyword in error_msg
for keyword in ["lakebase", "pg_hba", "postgres", "database instance", "insufficient privilege"]
):
logger.error("Lakebase access error during session setup:\n%s", get_lakebase_access_error_message(lakebase_config.description))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we delete get_lakebase_access_error_message now as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also, this error message was useful because it directed users to the grant script. They dont need the script anymore for agent memory, but they still do need it for UI drizzle schemas right? So maybe the new error message should still keep some of the content from get_lakebase_access_error_message?

Comment thread agent-langgraph-advanced/databricks.yml Outdated
Comment thread agent-langgraph-advanced/databricks.yml Outdated
Comment thread agent-langgraph-advanced/.env.example Outdated
Comment thread agent-openai-advanced/app.yaml Outdated
bbqiu added 7 commits April 20, 2026 18:45
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
Copy link
Copy Markdown
Contributor

@dhruv0811 dhruv0811 left a comment

Choose a reason for hiding this comment

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

also lgtm!

Just need to wait for other PR merge :)

Copy link
Copy Markdown
Contributor

@jennsun jennsun left a comment

Choose a reason for hiding this comment

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

ty for updating the agent memory examples w/ updated schemas! could you add testing to verify this works (deploy an agent and make sure without running the permission granting script, the short-term/long-term memory checkpoints and user preferences are now in the custom schema

bbqiu added 4 commits April 21, 2026 16:21
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
.
Signed-off-by: Bryan Qiu <bryan.qiu@databricks.com>
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.

3 participants