# Copyright 2024 Google LLC
#
# Licensed 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.

# yamllint disable rule:line-length
values:
  module.biglake_catalog.google_biglake_catalog.catalog:
    location: US
    name: my_catalog
    project: project-id
    timeouts: null
  module.biglake_catalog.google_biglake_database.databases["my_database"]:
    hive_options:
    - location_uri: gs://my-bucket/my-database-folder
      parameters:
        owner: John Doe
    name: my_database
    timeouts: null
    type: HIVE
  module.biglake_catalog.google_biglake_table.tables["my_database-my_table"]:
    hive_options:
    - parameters:
        owner: John Doe
        provider: iceberg
        spark.sql.create.version: 3.1.3
        spark.sql.partitionProvider: catalog
        spark.sql.sources.provider: iceberg
        spark.sql.sources.schema.numParts: '1'
        spark.sql.sources.schema.part.0: '{"fields":[{"metadata":{},"name":"id","nullable":true,"type":"integer"},{"metadata":{},"name":"name","nullable":true,"type":"string"},{"metadata":{},"name":"age","nullable":true,"type":"integer"}],"type":"struct"}'
        transient_lastDdlTime: '1680894197'
      storage_descriptor:
      - input_format: org.apache.hadoop.mapred.SequenceFileInputFormat
        location_uri: gs://my-bucket/my-table-folder
        output_format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
      table_type: MANAGED_TABLE
    name: my_table
    timeouts: null
    type: HIVE

counts:
  google_biglake_catalog: 1
  google_biglake_database: 1
  google_biglake_table: 1
  modules: 1
  resources: 3
