original_docstring: Read incremental file and historical data and return as DataFrames
  
      :param spark: Spark session object.
      :type spark: SparkSession
      :param config: job configuration
      :type config: Dict
      :param logger: Py4j Logger
      :type logger: Py4j.Logger
      :return: Spark DataFrames.
      :rtype: DataFrame
      
docstring: Read incremental file and historical data and return as DataFrames
docstring_tokens: Read incremental file and historical data and return as DataFrames
code: def extract(spark: SparkSession, config: Dict, logger) -> Tuple[DataFrame, DataFrame]:
      """Read incremental file and historical data and return as DataFrames
  
      :param spark: Spark session object.
      :type spark: SparkSession
      :param config: job configuration
      :type config: Dict
      :param logger: Py4j Logger
      :type logger: Py4j.Logger
      :return: Spark DataFrames.
      :rtype: DataFrame
      """
      inc_df: DataFrame = spark.read.load(path=config['page_views_path'],
                                          format='csv',
                                          header=True,
                                          schema=schema.page_views)
      prev_df: DataFrame = spark.read.table(tableName=config['user_pageviews_tab'])
  
      return inc_df, prev_df
code_tokens: def extract ( spark : SparkSession , config : Dict , logger ) -> Tuple [ DataFrame , DataFrame ] : inc_df : DataFrame = spark . read . load ( path = config [ 'page_views_path' ] , format = 'csv' , header = True , schema = schema . page_views ) prev_df : DataFrame = spark . read . table ( tableName = config [ 'user_pageviews_tab' ] ) return inc_df , prev_df
short_docstring: Read incremental file and historical data and return as DataFrames
short_docstring_tokens: Read incremental file and historical data and return as DataFrames
comment: """Read incremental file and historical data and return as DataFrames
  
      :param spark: Spark session object.
      :type spark: SparkSession
      :param config: job configuration
      :type config: Dict
      :param logger: Py4j Logger
      :type logger: Py4j.Logger
      :return: Spark DataFrames.
      :rtype: DataFrame
      """