11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
-
15
14
import enum
16
15
import warnings
17
16
from abc import ABC , abstractmethod
@@ -485,12 +484,12 @@ def to_proto(self) -> DataSourceProto:
485
484
return data_source_proto
486
485
487
486
def validate (self , config : RepoConfig ):
488
- pass
487
+ raise NotImplementedError
489
488
490
489
def get_table_column_names_and_types (
491
490
self , config : RepoConfig
492
491
) -> Iterable [Tuple [str , str ]]:
493
- pass
492
+ raise NotImplementedError
494
493
495
494
@staticmethod
496
495
def source_datatype_to_feast_value_type () -> Callable [[str ], ValueType ]:
@@ -534,12 +533,12 @@ def __init__(
534
533
self .schema = schema
535
534
536
535
def validate (self , config : RepoConfig ):
537
- pass
536
+ raise NotImplementedError
538
537
539
538
def get_table_column_names_and_types (
540
539
self , config : RepoConfig
541
540
) -> Iterable [Tuple [str , str ]]:
542
- pass
541
+ raise NotImplementedError
543
542
544
543
def __eq__ (self , other ):
545
544
if not isinstance (other , RequestSource ):
@@ -610,12 +609,12 @@ def source_datatype_to_feast_value_type() -> Callable[[str], ValueType]:
610
609
@typechecked
611
610
class KinesisSource (DataSource ):
612
611
def validate (self , config : RepoConfig ):
613
- pass
612
+ raise NotImplementedError
614
613
615
614
def get_table_column_names_and_types (
616
615
self , config : RepoConfig
617
616
) -> Iterable [Tuple [str , str ]]:
618
- pass
617
+ raise NotImplementedError
619
618
620
619
@staticmethod
621
620
def from_proto (data_source : DataSourceProto ):
@@ -639,7 +638,7 @@ def from_proto(data_source: DataSourceProto):
639
638
640
639
@staticmethod
641
640
def source_datatype_to_feast_value_type () -> Callable [[str ], ValueType ]:
642
- pass
641
+ raise NotImplementedError
643
642
644
643
def get_table_query_string (self ) -> str :
645
644
raise NotImplementedError
@@ -772,12 +771,12 @@ def __hash__(self):
772
771
return super ().__hash__ ()
773
772
774
773
def validate (self , config : RepoConfig ):
775
- pass
774
+ raise NotImplementedError
776
775
777
776
def get_table_column_names_and_types (
778
777
self , config : RepoConfig
779
778
) -> Iterable [Tuple [str , str ]]:
780
- pass
779
+ raise NotImplementedError
781
780
782
781
@staticmethod
783
782
def from_proto (data_source : DataSourceProto ):
0 commit comments