Schema Info

Schema Name: sfdl_prod_drivethru.benjamincostreports_benjamincostreports
  • created: 2022-12-30 14:10:27
  • disabled: False
  • format: raw
  • id: 1248
  • is_partitioned: True
  • is_schema_datatyped: True
  • name:
    {
        "database": "sfdl_prod_drivethru",
        "table": "benjamincostreports_benjamincostreports"
    }
  • type: drivethrucsv
Schema Versions: 1
    • created: 2022-12-30 14:10:28
    • ddl:
      [
          "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
          "DROP TABLE IF EXISTS `sfdl_prod_drivethru.benjamincostreports_benjamincostreports`",
          "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.benjamincostreports_benjamincostreports`\n(\n `CostCategoryValue`  string , `CurrencyCode`  string , `Cost`  string , `SplitCharge_Refunds`  string , `SplitCharge_storEDGE_Shared_Services`  string , `TotalAllocatedCost`  string , `StartDate`  string , `EndDate`  string , `ProcessDate`  string , `Partial`  string \n)\nPARTITIONED BY (dt string)\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_incremental/benjamincostreports_benjamincostreports'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
          "MSCK REPAIR TABLE sfdl_prod_drivethru.benjamincostreports_benjamincostreports"
      ]
    • hive_path: s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports
    • id: 413424
    • processed: 1
    • raw_data:
      {
          "Cost": 2,
          "CostCategoryValue": 0,
          "CurrencyCode": 1,
          "EndDate": 7,
          "Partial": 9,
          "ProcessDate": 8,
          "SplitCharge Refunds": 3,
          "SplitCharge storEDGE Shared Services": 4,
          "StartDate": 6,
          "TotalAllocatedCost": 5
      }
    • schema_attributes:
      {
          "Cost": "string",
          "CostCategoryValue": "string",
          "CurrencyCode": "string",
          "EndDate": "string",
          "Partial": "string",
          "ProcessDate": "string",
          "SplitCharge_Refunds": "string",
          "SplitCharge_storEDGE_Shared_Services": "string",
          "StartDate": "string",
          "TotalAllocatedCost": "string"
      }
    • schema_name_id: 1248
    • schema_scan_id: 82153175
    • updated: 2022-12-30 14:10:53
Schema Scans: 1
Last at 2022-12-30 14:10:27
    • duration: 0:00:16.986424
    • exit_message:
      {
          "exception": "Query failed: [ErrorCategory:USER_ERROR, ErrorCode:SYNTAX_ERROR], Detail:FAILED: SemanticException [Error 10001]: Table not found sfdl_prod_drivethru.benjamincostreports_benjamincostreports `SHOW PARTITIONS `sfdl_prod_drivethru.benjamincostreports_benjamincostreports``\nTraceback (most recent call last):\n  File \"/schema_manager/schema_generator/schema_scanner.py\", line 102, in scan\n    response = service.run()\n  File \"/schema_manager/schema_generator/process_hive_table.py\", line 105, in run\n    response['ingested_partitions'] = pi.run()  # *total* current number of partitions in the table\n  File \"/schema_manager/schema_manager/service/partition_ingester.py\", line 17, in run\n    result = self.runner.run_single_query(ddl, timeout=ATHENA_TIMEOUT)\n  File \"/src/athena-runner/athena_runner/runner.py\", line 51, in run_single_query\n    return self._run_single_query(query, timeout, database)\n  File \"/src/athena-runner/athena_runner/runner.py\", line 120, in _run_single_query\n    raise e\n  File \"/src/athena-runner/athena_runner/runner.py\", line 103, in _run_single_query\n    raise AthenaRunnerQueryException('Query failed: {} `{}`'.format(info['QueryExecution']['Status']['StateChangeReason'], query))\nathena_runner.exceptions.AthenaRunnerQueryException: Query failed: [ErrorCategory:USER_ERROR, ErrorCode:SYNTAX_ERROR], Detail:FAILED: SemanticException [Error 10001]: Table not found sfdl_prod_drivethru.benjamincostreports_benjamincostreports `SHOW PARTITIONS `sfdl_prod_drivethru.benjamincostreports_benjamincostreports``\n: Expecting value: line 1 column 1 (char 0)"
      }
    • id: 82153175
    • payload:
      {
          "datatype_dict": null,
          "file_format": "csv",
          "file_properties": {
              "data_has_header_row": true
          },
          "is_schema_datatyped": true,
          "partition": {
              "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28",
              "name": "dt",
              "type": "string",
              "value": "2022-12-28"
          },
          "s3": {
              "bucket": "sfdl-drivethrucsv-drivethru-prod",
              "hive_path": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports",
              "key": "raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28/out.gz"
          },
          "schema": {
              "name": "sfdl_prod_drivethru.benjamincostreports_benjamincostreports",
              "type": "drivethrucsv"
          },
          "trace_context": {
              "parent_id": 680028489486605873,
              "service_name": "drive-thru",
              "span_id": 12507230632714258616,
              "trace_id": 4364658399680950146
          }
      }
    • running: False
    • schema_name_id: 1248
    • start_time: 2022-12-30 14:10:27
    • success: False
    • trace_id: 4364658399680950146
Partitions:
  • count: 5
  • ddl:
    [
        "ALTER TABLE\n    `sfdl_prod_drivethru.benjamincostreports_benjamincostreports`\nADD\n\n\n PARTITION (dt='2022-12-16') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-16/'\n PARTITION (dt='2022-12-17') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-17/'\n PARTITION (dt='2022-12-20') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-20/'\n PARTITION (dt='2022-12-21') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-21/'\n PARTITION (dt='2022-12-28') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28'\n;"
    ]
  • name: dt
  • state:
    [
        {
            "info": {
                "id": 860339,
                "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-16/",
                "name": "dt",
                "value": "2022-12-16"
            },
            "state": {
                "arrival": {
                    "athena_discovery": true,
                    "first_data": "2022-12-30 14:10:58",
                    "last_data": "2022-12-30 14:10:58"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        },
        {
            "info": {
                "id": 860340,
                "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-17/",
                "name": "dt",
                "value": "2022-12-17"
            },
            "state": {
                "arrival": {
                    "athena_discovery": true,
                    "first_data": "2022-12-30 14:10:58",
                    "last_data": "2022-12-30 14:10:58"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        },
        {
            "info": {
                "id": 860338,
                "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-20/",
                "name": "dt",
                "value": "2022-12-20"
            },
            "state": {
                "arrival": {
                    "athena_discovery": true,
                    "first_data": "2022-12-30 14:10:58",
                    "last_data": "2022-12-30 14:10:58"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        },
        {
            "info": {
                "id": 860341,
                "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-21/",
                "name": "dt",
                "value": "2022-12-21"
            },
            "state": {
                "arrival": {
                    "athena_discovery": true,
                    "first_data": "2022-12-30 14:10:58",
                    "last_data": "2022-12-30 14:10:58"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        },
        {
            "info": {
                "id": 860337,
                "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28",
                "name": "dt",
                "value": "2022-12-28"
            },
            "state": {
                "arrival": {
                    "athena_discovery": true,
                    "first_data": "2022-12-30 14:10:28",
                    "last_data": "2022-12-30 14:11:50"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        }
    ]
  • type: string
Schema:
  • attributes:
    {
        "Cost": "string",
        "CostCategoryValue": "string",
        "CurrencyCode": "string",
        "EndDate": "string",
        "Partial": "string",
        "ProcessDate": "string",
        "SplitCharge_Refunds": "string",
        "SplitCharge_storEDGE_Shared_Services": "string",
        "StartDate": "string",
        "TotalAllocatedCost": "string"
    }
  • created: 2022-12-30 14:10:28
  • ddl:
    {
        "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
        "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.benjamincostreports_benjamincostreports`\n(\n `CostCategoryValue`  string , `CurrencyCode`  string , `Cost`  string , `SplitCharge_Refunds`  string , `SplitCharge_storEDGE_Shared_Services`  string , `TotalAllocatedCost`  string , `StartDate`  string , `EndDate`  string , `ProcessDate`  string , `Partial`  string \n)\nPARTITIONED BY (dt string)\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_incremental/benjamincostreports_benjamincostreports'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
        "drop_table": "DROP TABLE IF EXISTS `sfdl_prod_drivethru.benjamincostreports_benjamincostreports`",
        "repair_table": "MSCK REPAIR TABLE sfdl_prod_drivethru.benjamincostreports_benjamincostreports"
    }
Server:
  • hostname: schemamanager-5475496c57-7dpqb
  • name: schema_manager
  • process_start: 2026-01-09 11:27:47
  • sf_env: prod
  • version: 2112174301
Raw:
{
    "name": {
        "created": "2022-12-30 14:10:27",
        "disabled": false,
        "format": "raw",
        "id": 1248,
        "is_partitioned": true,
        "is_schema_datatyped": true,
        "name": {
            "database": "sfdl_prod_drivethru",
            "table": "benjamincostreports_benjamincostreports"
        },
        "type": "drivethrucsv"
    },
    "partition": {
        "count": 5,
        "ddl": [
            "ALTER TABLE\n    `sfdl_prod_drivethru.benjamincostreports_benjamincostreports`\nADD\n\n\n PARTITION (dt='2022-12-16') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-16/'\n PARTITION (dt='2022-12-17') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-17/'\n PARTITION (dt='2022-12-20') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-20/'\n PARTITION (dt='2022-12-21') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-21/'\n PARTITION (dt='2022-12-28') location 's3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28'\n;"
        ],
        "name": "dt",
        "state": [
            {
                "info": {
                    "id": 860339,
                    "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-16/",
                    "name": "dt",
                    "value": "2022-12-16"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": true,
                        "first_data": "2022-12-30 14:10:58",
                        "last_data": "2022-12-30 14:10:58"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            },
            {
                "info": {
                    "id": 860340,
                    "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-17/",
                    "name": "dt",
                    "value": "2022-12-17"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": true,
                        "first_data": "2022-12-30 14:10:58",
                        "last_data": "2022-12-30 14:10:58"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            },
            {
                "info": {
                    "id": 860338,
                    "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-20/",
                    "name": "dt",
                    "value": "2022-12-20"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": true,
                        "first_data": "2022-12-30 14:10:58",
                        "last_data": "2022-12-30 14:10:58"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            },
            {
                "info": {
                    "id": 860341,
                    "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-21/",
                    "name": "dt",
                    "value": "2022-12-21"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": true,
                        "first_data": "2022-12-30 14:10:58",
                        "last_data": "2022-12-30 14:10:58"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            },
            {
                "info": {
                    "id": 860337,
                    "location": "s3://sfdl-drivethrucsv-drivethru-prod/raw_incremental/benjamincostreports_benjamincostreports/dt=2022-12-28",
                    "name": "dt",
                    "value": "2022-12-28"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": true,
                        "first_data": "2022-12-30 14:10:28",
                        "last_data": "2022-12-30 14:11:50"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            }
        ],
        "type": "string"
    },
    "schema": {
        "attributes": {
            "Cost": "string",
            "CostCategoryValue": "string",
            "CurrencyCode": "string",
            "EndDate": "string",
            "Partial": "string",
            "ProcessDate": "string",
            "SplitCharge_Refunds": "string",
            "SplitCharge_storEDGE_Shared_Services": "string",
            "StartDate": "string",
            "TotalAllocatedCost": "string"
        },
        "created": "2022-12-30 14:10:28",
        "ddl": {
            "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_prod_drivethru`",
            "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_prod_drivethru.benjamincostreports_benjamincostreports`\n(\n `CostCategoryValue`  string , `CurrencyCode`  string , `Cost`  string , `SplitCharge_Refunds`  string , `SplitCharge_storEDGE_Shared_Services`  string , `TotalAllocatedCost`  string , `StartDate`  string , `EndDate`  string , `ProcessDate`  string , `Partial`  string \n)\nPARTITIONED BY (dt string)\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_incremental/benjamincostreports_benjamincostreports'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
            "drop_table": "DROP TABLE IF EXISTS `sfdl_prod_drivethru.benjamincostreports_benjamincostreports`",
            "repair_table": "MSCK REPAIR TABLE sfdl_prod_drivethru.benjamincostreports_benjamincostreports"
        }
    },
    "server": {
        "hostname": "schemamanager-5475496c57-7dpqb",
        "name": "schema_manager",
        "process_start": "2026-01-09 11:27:47",
        "sf_env": "prod",
        "version": "2112174301"
    }
}