/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.shardingsphere.governance.core.yaml.config.schema;

import lombok.Getter;
import lombok.Setter;
import org.apache.shardingsphere.infra.yaml.config.YamlConfiguration;

import java.util.Collection;
import java.util.Map;

/**
 * Table meta data for YAML.
 */
@Getter
@Setter
public final class YamlTableMetaData implements YamlConfiguration {
    
    private Map<String, YamlColumnMetaData> columns;
    
    private Map<String, YamlIndexMetaData> indexes;
    
    private Collection<String> addressingDataSources;
}

@@ -1011,16 +1011,48 @@
 ection;%0A
+import java.util.LinkedHashSet;%0A
 import j
@@ -1359,12 +1359,36 @@
 aSources
+ = new LinkedHashSet%3C%3E()
 ;%0A%7D%0A

Fix NPE with schema yaml convert (#8124)