Skip to content

Commit d592c46

Browse files
committed
Rename FeastType to ComplexFeastType
Signed-off-by: Felix Wang <wangfelix98@gmail.com>
1 parent fbfd251 commit d592c46

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

sdk/python/feast/types.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030
}
3131

3232

33-
class FeastType(ABC):
33+
class ComplexFeastType(ABC):
3434
"""
35-
A FeastType represents a structured type that is recognized by Feast.
35+
A ComplexFeastType represents a structured type that is recognized by Feast.
3636
"""
3737

3838
def __init__(self):
39-
"""Creates a FeastType object."""
39+
"""Creates a ComplexFeastType object."""
4040
pass
4141

4242
@abstractmethod
4343
def to_int(self) -> int:
4444
"""
45-
Converts a FeastType object to the appropriate int value corresponding to
45+
Converts a ComplexFeastType object to the appropriate int value corresponding to
4646
the correct ValueTypeProto.Enum value.
4747
"""
4848
raise NotImplementedError
@@ -56,11 +56,11 @@ class PrimitiveFeastType(Enum):
5656
INVALID = 0
5757
BYTES = 1
5858
STRING = 2
59-
BOOL = 3
60-
INT32 = 4
61-
INT64 = 5
62-
FLOAT32 = 6
63-
FLOAT64 = 7
59+
INT32 = 3
60+
INT64 = 4
61+
FLOAT32 = 5
62+
FLOAT64 = 6
63+
BOOL = 7
6464
UNIX_TIMESTAMP = 8
6565

6666
def to_int(self) -> int:
@@ -92,17 +92,17 @@ def to_int(self) -> int:
9292
]
9393

9494

95-
class Array(FeastType):
95+
class Array(ComplexFeastType):
9696
"""
9797
An Array represents a list of types.
9898
9999
Attributes:
100100
base_type: The base type of the array.
101101
"""
102102

103-
base_type: Union[PrimitiveFeastType, FeastType]
103+
base_type: Union[PrimitiveFeastType, ComplexFeastType]
104104

105-
def __init__(self, base_type: Union[PrimitiveFeastType, FeastType]):
105+
def __init__(self, base_type: Union[PrimitiveFeastType, ComplexFeastType]):
106106
if base_type not in SUPPORTED_BASE_TYPES:
107107
raise ValueError(
108108
f"Type {type(base_type)} is currently not supported as a base type for Array."

0 commit comments

Comments
 (0)