code: public static void main(String[] args) {
      SparkSession spark = SparkSession
        .builder()
        .appName("Java Spark SQL data sources example")
        .config("spark.some.config.option", "some-value")
        .getOrCreate();
  
      runBasicDataSourceExample(spark);
      runBasicParquetExample(spark);
      runParquetSchemaMergingExample(spark);
      runJsonDatasetExample(spark);
      runJdbcDatasetExample(spark);
  
      spark.stop();
    }
docs: $example off:schema_merging$