-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#2929] improvement(pyClient): Optimize Python client code and add in…
…tegration test (#3125) ### What changes were proposed in this pull request? 1. Add `_` before Python class member variable name, let it to private access level. 2. Add Metalake, Schema E2E integration test. ### Why are the changes needed? Fix: #2929 ### Does this PR introduce _any_ user-facing change? N/A ### How was this patch tested? CI Passed. Co-authored-by: Xun Liu <[email protected]> Co-authored-by: yuhui <[email protected]>
- Loading branch information
1 parent
b265be7
commit 4db1a3c
Showing
45 changed files
with
837 additions
and
553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
""" | ||
Copyright 2024 Datastrato Pvt Ltd. | ||
This software is licensed under the Apache License version 2. | ||
""" | ||
from abc import abstractmethod | ||
from typing import Optional, Dict | ||
|
||
from gravitino.api.auditable import Auditable | ||
|
||
|
||
class Metalake(Auditable): | ||
""" | ||
The interface of a metalake. The metalake is the top level entity in the gravitino system, | ||
containing a set of catalogs. | ||
""" | ||
|
||
@abstractmethod | ||
def name(self) -> str: | ||
"""The name of the metalake. | ||
Returns: | ||
str: The name of the metalake. | ||
""" | ||
pass | ||
|
||
@abstractmethod | ||
def comment(self) -> Optional[str]: | ||
"""The comment of the metalake. Note. this method will return None if the comment is not set for | ||
this metalake. | ||
Returns: | ||
Optional[str]: The comment of the metalake. | ||
""" | ||
pass | ||
|
||
@abstractmethod | ||
def properties(self) -> Optional[Dict[str, str]]: | ||
"""The properties of the metalake. Note, this method will return None if the properties are not | ||
set. | ||
Returns: | ||
Optional[Dict[str, str]]: The properties of the metalake. | ||
""" | ||
pass |
Oops, something went wrong.