Schema Info

Schema Name: sfdl_prod_drivethru.newbook_newbookeu_discounts
  • created: 2024-11-27 06:40:33
  • disabled: False
  • format: raw
  • id: 2236
  • is_partitioned: False
  • is_schema_datatyped: True
  • name:
    {
        "database": "sfdl_prod_drivethru",
        "table": "newbook_newbookeu_discounts"
    }
  • type: drivethrucsv
Schema Versions: 3
    • created: 2025-05-15 16:37:58
    • ddl:
      [
          "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
          "DROP TABLE IF EXISTS `sfdl_prod_drivethru.newbook_newbookeu_discounts`",
          "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.newbook_newbookeu_discounts`\n(\n `newbook_region`  string , `tenant`  string , `id`  string , `name`  string , `discount_type`  string , `discount_amount`  string , `minimum`  string , `maximum`  string , `maximum_applies_per_night`  string , `minimum_stay_cost`  string , `min_stay`  string , `max_stay`  string , `min_valid_nights`  string , `requires_code`  string , `daysofweek`  string \n)\nROW FORMAT SERDE\n'org.apache.hadoop.hive.serde2.OpenCSVSerde'\n WITH SERDEPROPERTIES ( 'separatorChar' = ',', 'quoteChar' = '\"', 'escapeChar' = '\\\\')\nSTORED AS INPUTFORMAT\n  'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n  's3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2025-05-15/1747344798'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
          "MSCK REPAIR TABLE sfdl_prod_drivethru.newbook_newbookeu_discounts"
      ]
    • hive_path: s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2025-05-15/1747344798
    • id: 1306632
    • processed: 1
    • raw_data:
      {
          "daysofweek": 14,
          "discount_amount": 5,
          "discount_type": 4,
          "id": 2,
          "max_stay": 11,
          "maximum": 7,
          "maximum_applies_per_night": 8,
          "min_stay": 10,
          "min_valid_nights": 12,
          "minimum": 6,
          "minimum_stay_cost": 9,
          "name": 3,
          "newbook_region": 0,
          "requires_code": 13,
          "tenant": 1
      }
    • schema_attributes:
      {
          "daysofweek": "string",
          "discount_amount": "string",
          "discount_type": "string",
          "id": "string",
          "max_stay": "string",
          "maximum": "string",
          "maximum_applies_per_night": "string",
          "min_stay": "string",
          "min_valid_nights": "string",
          "minimum": "string",
          "minimum_stay_cost": "string",
          "name": "string",
          "newbook_region": "string",
          "requires_code": "string",
          "tenant": "string"
      }
    • schema_name_id: 2236
    • schema_scan_id: 142210649
    • updated: 2025-05-15 16:38:09
    • created: 2024-12-04 08:34:33
    • ddl:
      [
          "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
          "DROP TABLE IF EXISTS `sfdl_prod_drivethru.newbook_newbookeu_discounts`",
          "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.newbook_newbookeu_discounts`\n(\n `newbook_region`  string , `tenant`  string , `id`  string , `name`  string , `discount_type`  string , `discount_amount`  string , `minimum`  string , `maximum`  string , `maximum_applies_per_night`  string , `minimum_stay_cost`  string , `min_stay`  string , `max_stay`  string , `min_valid_nights`  string , `requires_code`  string , `daysofweek`  string \n)\nROW FORMAT SERDE\n'org.apache.hadoop.hive.serde2.OpenCSVSerde'\n WITH SERDEPROPERTIES ( 'separatorChar' = ',', 'quoteChar' = '\"', 'escapeChar' = '\\\\')\nSTORED AS INPUTFORMAT\n  'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n  's3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-12-04/1733322400'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
          "MSCK REPAIR TABLE sfdl_prod_drivethru.newbook_newbookeu_discounts"
      ]
    • hive_path: s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-12-04/1733322400
    • id: 1110886
    • processed: 1
    • raw_data:
      {
          "daysofweek": 14,
          "discount_amount": 5,
          "discount_type": 4,
          "id": 2,
          "max_stay": 11,
          "maximum": 7,
          "maximum_applies_per_night": 8,
          "min_stay": 10,
          "min_valid_nights": 12,
          "minimum": 6,
          "minimum_stay_cost": 9,
          "name": 3,
          "newbook_region": 0,
          "requires_code": 13,
          "tenant": 1
      }
    • schema_attributes:
      {
          "daysofweek": "string",
          "discount_amount": "string",
          "discount_type": "string",
          "id": "string",
          "max_stay": "string",
          "maximum": "string",
          "maximum_applies_per_night": "string",
          "min_stay": "string",
          "min_valid_nights": "string",
          "minimum": "string",
          "minimum_stay_cost": "string",
          "name": "string",
          "newbook_region": "string",
          "requires_code": "string",
          "tenant": "string"
      }
    • schema_name_id: 2236
    • schema_scan_id: 132952777
    • updated: 2024-12-04 08:34:44
    • created: 2024-11-27 06:40:34
    • ddl:
      [
          "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
          "DROP TABLE IF EXISTS `sfdl_prod_drivethru.newbook_newbookeu_discounts`",
          "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.newbook_newbookeu_discounts`\n(\n `newbook_region`  string , `tenant`  string , `id`  string , `name`  string , `discount_type`  string , `discount_amount`  string , `minimum`  string , `maximum`  string , `maximum_applies_per_night`  string , `minimum_stay_cost`  string , `min_stay`  string , `max_stay`  string , `min_valid_nights`  string , `requires_code`  string , `daysofweek`  string \n)\nROW FORMAT SERDE\n'org.apache.hadoop.hive.serde2.OpenCSVSerde'\n WITH SERDEPROPERTIES ( 'separatorChar' = ',', 'quoteChar' = '\"', 'escapeChar' = '\\\\')\nSTORED AS INPUTFORMAT\n  'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n  's3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-11-27/1732710888'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
          "MSCK REPAIR TABLE sfdl_prod_drivethru.newbook_newbookeu_discounts"
      ]
    • hive_path: s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-11-27/1732710888
    • id: 1101769
    • processed: 1
    • raw_data:
      {
          "daysofweek": 14,
          "discount_amount": 5,
          "discount_type": 4,
          "id": 2,
          "max_stay": 11,
          "maximum": 7,
          "maximum_applies_per_night": 8,
          "min_stay": 10,
          "min_valid_nights": 12,
          "minimum": 6,
          "minimum_stay_cost": 9,
          "name": 3,
          "newbook_region": 0,
          "requires_code": 13,
          "tenant": 1
      }
    • schema_attributes:
      {
          "daysofweek": "string",
          "discount_amount": "string",
          "discount_type": "string",
          "id": "string",
          "max_stay": "string",
          "maximum": "string",
          "maximum_applies_per_night": "string",
          "min_stay": "string",
          "min_valid_nights": "string",
          "minimum": "string",
          "minimum_stay_cost": "string",
          "name": "string",
          "newbook_region": "string",
          "requires_code": "string",
          "tenant": "string"
      }
    • schema_name_id: 2236
    • schema_scan_id: 132477841
    • updated: 2024-11-27 06:40:45
Schema Scans: 3
Last at 2025-05-15 16:37:57
    • duration: 0:00:11.751160
    • exit_message:
      {
          "ddl_changed": true,
          "partitions_applied": false,
          "success": true
      }
    • id: 142210649
    • payload:
      {
          "datatype_dict": null,
          "file_format": "csv",
          "file_properties": {
              "data_has_header_row": true
          },
          "is_schema_datatyped": true,
          "s3": {
              "bucket": "sfdl-drivethrucsv-drivethru-prod",
              "hive_path": "s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2025-05-15/1747344798",
              "key": "raw/newbook_newbookeu_discounts/2025-05-15/1747344798/eu_discounts.csv.gz"
          },
          "schema": {
              "name": "sfdl_prod_drivethru.newbook_newbookeu_discounts",
              "type": "drivethrucsv"
          },
          "trace_context": {
              "parent_id": 18020526178623736520,
              "service_name": "drive-thru",
              "span_id": 12509489484859628635,
              "trace_id": 7196614517736502507
          }
      }
    • running: False
    • schema_name_id: 2236
    • start_time: 2025-05-15 16:37:57
    • success: True
    • trace_id: 7196614517736502507
    • duration: 0:00:11.716119
    • exit_message:
      {
          "ddl_changed": true,
          "partitions_applied": false,
          "success": true
      }
    • id: 132952777
    • payload:
      {
          "datatype_dict": null,
          "file_format": "csv",
          "file_properties": {
              "data_has_header_row": true
          },
          "is_schema_datatyped": true,
          "s3": {
              "bucket": "sfdl-drivethrucsv-drivethru-prod",
              "hive_path": "s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-12-04/1733322400",
              "key": "raw/newbook_newbookeu_discounts/2024-12-04/1733322400/eu_discounts.csv.gz"
          },
          "schema": {
              "name": "sfdl_prod_drivethru.newbook_newbookeu_discounts",
              "type": "drivethrucsv"
          },
          "trace_context": {
              "parent_id": 5101750993635871303,
              "service_name": "drive-thru",
              "span_id": 7160162712481315499,
              "trace_id": 9538463657054539398
          }
      }
    • running: False
    • schema_name_id: 2236
    • start_time: 2024-12-04 08:34:33
    • success: True
    • trace_id: 9538463657054539398
    • duration: 0:00:11.758387
    • exit_message:
      {
          "ddl_changed": true,
          "partitions_applied": false,
          "success": true
      }
    • id: 132477841
    • payload:
      {
          "datatype_dict": null,
          "file_format": "csv",
          "file_properties": {
              "data_has_header_row": true
          },
          "is_schema_datatyped": true,
          "s3": {
              "bucket": "sfdl-drivethrucsv-drivethru-prod",
              "hive_path": "s3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2024-11-27/1732710888",
              "key": "raw/newbook_newbookeu_discounts/2024-11-27/1732710888/eu_discounts.csv.gz"
          },
          "schema": {
              "name": "sfdl_prod_drivethru.newbook_newbookeu_discounts",
              "type": "drivethrucsv"
          },
          "trace_context": {
              "parent_id": 12633396686662556765,
              "service_name": "drive-thru",
              "span_id": 1398056660614862424,
              "trace_id": 13822247468555374138
          }
      }
    • running: False
    • schema_name_id: 2236
    • start_time: 2024-11-27 06:40:33
    • success: True
    • trace_id: 13822247468555374138
Partitions:
  • count: 0
  • ddl: None
  • name: None
  • state:
    []
  • type: None
Schema:
  • attributes:
    {
        "daysofweek": "string",
        "discount_amount": "string",
        "discount_type": "string",
        "id": "string",
        "max_stay": "string",
        "maximum": "string",
        "maximum_applies_per_night": "string",
        "min_stay": "string",
        "min_valid_nights": "string",
        "minimum": "string",
        "minimum_stay_cost": "string",
        "name": "string",
        "newbook_region": "string",
        "requires_code": "string",
        "tenant": "string"
    }
  • created: 2025-05-15 16:37:58
  • ddl:
    {
        "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
        "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.newbook_newbookeu_discounts`\n(\n `newbook_region`  string , `tenant`  string , `id`  string , `name`  string , `discount_type`  string , `discount_amount`  string , `minimum`  string , `maximum`  string , `maximum_applies_per_night`  string , `minimum_stay_cost`  string , `min_stay`  string , `max_stay`  string , `min_valid_nights`  string , `requires_code`  string , `daysofweek`  string \n)\nROW FORMAT SERDE\n'org.apache.hadoop.hive.serde2.OpenCSVSerde'\n WITH SERDEPROPERTIES ( 'separatorChar' = ',', 'quoteChar' = '\"', 'escapeChar' = '\\\\')\nSTORED AS INPUTFORMAT\n  'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n  's3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2025-05-15/1747344798'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
        "drop_table": "DROP TABLE IF EXISTS `sfdl_prod_drivethru.newbook_newbookeu_discounts`",
        "repair_table": "MSCK REPAIR TABLE sfdl_prod_drivethru.newbook_newbookeu_discounts"
    }
Server:
  • hostname: schemamanager-5475496c57-7dpqb
  • name: schema_manager
  • process_start: 2026-01-09 11:27:47
  • sf_env: prod
  • version: 2112174301
Raw:
{
    "name": {
        "created": "2024-11-27 06:40:33",
        "disabled": false,
        "format": "raw",
        "id": 2236,
        "is_partitioned": false,
        "is_schema_datatyped": true,
        "name": {
            "database": "sfdl_prod_drivethru",
            "table": "newbook_newbookeu_discounts"
        },
        "type": "drivethrucsv"
    },
    "partition": {
        "count": 0,
        "ddl": null,
        "name": null,
        "state": [],
        "type": null
    },
    "schema": {
        "attributes": {
            "daysofweek": "string",
            "discount_amount": "string",
            "discount_type": "string",
            "id": "string",
            "max_stay": "string",
            "maximum": "string",
            "maximum_applies_per_night": "string",
            "min_stay": "string",
            "min_valid_nights": "string",
            "minimum": "string",
            "minimum_stay_cost": "string",
            "name": "string",
            "newbook_region": "string",
            "requires_code": "string",
            "tenant": "string"
        },
        "created": "2025-05-15 16:37:58",
        "ddl": {
            "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
            "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.newbook_newbookeu_discounts`\n(\n `newbook_region`  string , `tenant`  string , `id`  string , `name`  string , `discount_type`  string , `discount_amount`  string , `minimum`  string , `maximum`  string , `maximum_applies_per_night`  string , `minimum_stay_cost`  string , `min_stay`  string , `max_stay`  string , `min_valid_nights`  string , `requires_code`  string , `daysofweek`  string \n)\nROW FORMAT SERDE\n'org.apache.hadoop.hive.serde2.OpenCSVSerde'\n WITH SERDEPROPERTIES ( 'separatorChar' = ',', 'quoteChar' = '\"', 'escapeChar' = '\\\\')\nSTORED AS INPUTFORMAT\n  'org.apache.hadoop.mapred.TextInputFormat'\nOUTPUTFORMAT\n  'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat'\nLOCATION\n  's3://sfdl-drivethrucsv-drivethru-prod/raw/newbook_newbookeu_discounts/2025-05-15/1747344798'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
            "drop_table": "DROP TABLE IF EXISTS `sfdl_prod_drivethru.newbook_newbookeu_discounts`",
            "repair_table": "MSCK REPAIR TABLE sfdl_prod_drivethru.newbook_newbookeu_discounts"
        }
    },
    "server": {
        "hostname": "schemamanager-5475496c57-7dpqb",
        "name": "schema_manager",
        "process_start": "2026-01-09 11:27:47",
        "sf_env": "prod",
        "version": "2112174301"
    }
}