@@ -659,8 +659,8 @@ class StorageDescriptor:
659659 "org.apache.hadoop.hive.ql.io.orc.OrcInputFormat"). The maximum
660660 length is 128 characters.
661661 locationUri (Optional[str]): The physical location of the table (e.g.
662- ` gs://spark-dataproc-data/pangea-data/case_sensitive/` or
663- ` gs://spark-dataproc-data/pangea-data/*` ). The maximum length is
662+ ' gs://spark-dataproc-data/pangea-data/case_sensitive/' or
663+ ' gs://spark-dataproc-data/pangea-data/' ). The maximum length is
664664 2056 bytes.
665665 outputFormat (Optional[str]): Specifies the fully qualified class name
666666 of the OutputFormat (e.g.
@@ -676,7 +676,7 @@ def __init__(
676676 output_format : Optional [str ] = None ,
677677 serde_info : Optional [SerDeInfo ] = None ,
678678 ):
679- self ._properties = {}
679+ self ._properties : Dict [ str , Any ] = {}
680680 self .input_format = input_format
681681 self .location_uri = location_uri
682682 self .output_format = output_format
@@ -697,9 +697,9 @@ def input_format(self, value: Optional[str]):
697697
698698 @property
699699 def location_uri (self ) -> Any :
700- """Optional. The physical location of the table (e.g. ` gs://spark-
701- dataproc-data/pangea-data/case_sensitive/` or ` gs://spark-dataproc-
702- data/pangea-data/*` ). The maximum length is 2056 bytes."""
700+ """Optional. The physical location of the table (e.g. ' gs://spark-
701+ dataproc-data/pangea-data/case_sensitive/' or ' gs://spark-dataproc-
702+ data/pangea-data/' ). The maximum length is 2056 bytes."""
703703
704704 return self ._properties .get ("locationUri" )
705705
@@ -726,9 +726,9 @@ def serde_info(self) -> Any:
726726 """Optional. Serializer and deserializer information."""
727727
728728 prop = _get_sub_prop (self ._properties , ["serDeInfo" ])
729- print (f"DINOSAUR in SD: { prop } \n \n { self ._properties } " )
730729 if prop is not None :
731- prop = SerDeInfo ().from_api_repr (prop )
730+ prop = StorageDescriptor ().from_api_repr (prop )
731+ print (f"DINOSAUR prop: { prop } " )
732732
733733 return prop
734734
@@ -787,7 +787,7 @@ def __init__(
787787 name : Optional [str ] = None ,
788788 parameters : Optional [dict [str , str ]] = None ,
789789 ):
790- self ._properties = {}
790+ self ._properties : Dict [ str , Any ] = {}
791791 self .serialization_library = serialization_library
792792 self .name = name
793793 self .parameters = parameters
@@ -850,6 +850,6 @@ def from_api_repr(cls, resource: dict) -> SerDeInfo:
850850 Returns:
851851 An instance of the class initialized with data from 'resource'.
852852 """
853- config = cls ()
853+ config = cls ("" )
854854 config ._properties = copy .deepcopy (resource )
855855 return config
0 commit comments