original_docstring: Read the data records from the input_file and print out the BigQuery
          schema on the output_file. The error logs are printed on the sys.stderr.
          Args:
              input_file: a file-like object (default: sys.stdin)
              output_file: a file-like object (default: sys.stdout)
              schema_map: the existing bigquery schema_map we start with
          
docstring: Read the data records from the input_file and print out the BigQuery
  schema on the output_file. The error logs are printed on the sys.stderr.
docstring_tokens: Read the data records from the input_file and print out the BigQuery schema on the output_file . The error logs are printed on the sys . stderr .
code: def run(
          self,
          input_file=sys.stdin,
          output_file=sys.stdout,
          schema_map=None,
      ):
          """Read the data records from the input_file and print out the BigQuery
          schema on the output_file. The error logs are printed on the sys.stderr.
          Args:
              input_file: a file-like object (default: sys.stdin)
              output_file: a file-like object (default: sys.stdout)
              schema_map: the existing bigquery schema_map we start with
          """
          schema_map, error_logs = self.deduce_schema(
              input_file, schema_map=schema_map
          )
  
          for error in error_logs:
              logging.info(
                  f"Problem on line {error['line_number']}: {error['msg']}"
              )
  
          if self.debugging_map:
              json.dump(schema_map, output_file, indent=2)
              print(file=output_file)
          else:
              schema = self.flatten_schema(schema_map)
              json.dump(schema, output_file, indent=2)
              print(file=output_file)
code_tokens: def run ( self , input_file = sys . stdin , output_file = sys . stdout , schema_map = None , ) : schema_map , error_logs = self . deduce_schema ( input_file , schema_map = schema_map ) for error in error_logs : logging . info ( f"Problem on line {error['line_number']}: {error['msg']}" ) if self . debugging_map : json . dump ( schema_map , output_file , indent = 2 ) print ( file = output_file ) else : schema = self . flatten_schema ( schema_map ) json . dump ( schema , output_file , indent = 2 ) print ( file = output_file )
short_docstring: Read the data records from the input_file and print out the BigQuery
  schema on the output_file.
short_docstring_tokens: Read the data records from the input_file and print out the BigQuery schema on the output_file .
comment: """Read the data records from the input_file and print out the BigQuery
          schema on the output_file. The error logs are printed on the sys.stderr.
          Args:
              input_file: a file-like object (default: sys.stdin)
              output_file: a file-like object (default: sys.stdout)
              schema_map: the existing bigquery schema_map we start with
          """