<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--
  ~ 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.
  -->
<!DOCTYPE datamodel
[
<!ENTITY name SYSTEM "/">
]
>
<datamodel>
    <datamapping>
        <column>
            <!-- This column type defines what will generally happen to VARCHAR fields unless they are explicitly defined or overridden elsewhere -->
            <type>VARCHAR</type>
            <dataSequence>RANDOM</dataSequence>
            <length>15</length>
            <name>&name;</name>
        </column>
    </datamapping>
    <scenarios>
        <!--  Scenario level DDL that is dynamically executed before the Write Workload is run.
              This pattern is really useful when you want to write data to multi-tenant view and the tenant id is
              tightly bound to the scenario. In such cases you can't create the view through the data model flow.
              The value of the tableName attribute is name of the view that is dynamically created based on the DDL
              in the ddl attribute. Queries accessing the View will need to manually make sure Pherf was run with the -l option at
              least once.
         -->
        <scenario tableName="PHERF.TEST_MT_VIEW" tenantId="abcdefghijklmno"
                    ddl="CREATE VIEW IF NOT EXISTS PHERF.TEST_MT_VIEW (field1 VARCHAR) AS SELECT * FROM PHERF.TEST_TABLE"
                    rowCount="100" name="testMTDdlWriteScenario">
        </scenario>

    </scenarios>
</datamodel>
