-
Notifications
You must be signed in to change notification settings - Fork 58
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
Introduce StagePath for working with files on stages #1674
Conversation
["@repo/branches/main/s1.sql", "@repo/branches/main/a/S3.sql"], | ||
), | ||
( | ||
"@repo/branches/main/a", | ||
"@repo/branches/main/", | ||
"@repo/branches/main", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To align the behavior. The StagePath
accepts both inputs (with or without trailing /) but the representation is always without / suffix
61383b6
to
177efb4
Compare
@@ -30,7 +30,7 @@ | |||
|
|||
log = logging.getLogger(__name__) | |||
|
|||
StagePath = PurePosixPath # alias PurePosixPath as StagePath for clarity | |||
StagePathType = PurePosixPath # alias PurePosixPath as StagePath for clarity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is done to avoid ambiguity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NADE LGTM
Pre-review checklist
Changes description
StagePath
toStagePathType
to avoid ambiguityStagePath
class representing a file on stage. This class offersPath
like operations includingjoinpath
orparent
operations.The next step of refactor will be removing of
StagePathParts
concepts and then moving query generation toStagePath
.