Skip to content

Conversation

@shreyas-goenka
Copy link
Contributor

@shreyas-goenka shreyas-goenka commented May 23, 2025

Why

Translating these fields is necessary for Lakeflow authoring experience to work well with DABs in the workspace. We expect users to set these fields manually in their bundle config.

For:

  1. root_path: We translate the relative root_path to an absolute path in the workspace. Since we assume that the root_path is within the sync root for the bundle (i.e., it's managed by the bundle), we error if it does not exist or lies outside the bundle root.
  2. glob.include: We directly translate relative glob patterns to absolute ones. Performing any client-side validation requires keeping the validation logic in sync with the server-side definition, so for now, we'll omit performing any client-side validation for glob patterns specified in glob.include.

Tests

Acceptance tests

@shreyas-goenka shreyas-goenka changed the base branch from main to bump-sdk May 23, 2025 05:45
@shreyas-goenka shreyas-goenka changed the title Translate relative pipelines root_path and glob.include Translate relative paths root_path and glob.include for pipelines May 23, 2025
@shreyas-goenka shreyas-goenka marked this pull request as ready for review May 23, 2025 06:04
Base automatically changed from bump-sdk to main May 26, 2025 10:04
>>> echo HELLO

=== Custom regex can be specified in [[Repl]] section
=== Custom regex can be specified in [[Repls]] section
Copy link
Contributor Author

Choose a reason for hiding this comment

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

small typo fix.

'
@shreyas-goenka shreyas-goenka merged commit 5714b49 into main May 27, 2025
9 of 10 checks passed
@shreyas-goenka shreyas-goenka deleted the pipelines-patp-2 branch May 27, 2025 09:03
@@ -0,0 +1,5 @@
bundle:
name: pipelines_relative_path_translation
Copy link
Contributor

Choose a reason for hiding this comment

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

One was removed, but this one was kept. Please keep consistency in mind.

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.

4 participants