parameters: (self, parts)
return_statement: return max_level
docstring: Get the max repetition level for the given schema path.
docstring_summary: Get the max repetition level for the given schema path.
docstring_tokens: Get the max repetition level for the given schema path .
function: def max_repetition_level(self, parts):
          """Get the max repetition level for the given schema path."""
          max_level = 0
          if isinstance(parts, text_type):
              parts = parts.split('.')
          for i in range(len(parts)):
              element = self.schema_element(parts[:i+1])
              if element.repetition_type == parquet_thrift.FieldRepetitionType.REPEATED:
                  max_level += 1
          return max_level
function_tokens: def max_repetition_level ( self , parts ) : max_level = 0 if isinstance ( parts , text_type ) : parts = parts . split ( '.' ) for i in range ( len ( parts ) ) : element = self . schema_element ( parts [ : i + 1 ] ) if element . repetition_type == parquet_thrift . FieldRepetitionType . REPEATED : max_level += 1 return max_level