Schema Info

Schema Name: sfdl_dev_drivethru.hackathonnic_test_partition_table
  • created: 2023-10-10 10:23:05
  • disabled: False
  • format: raw
  • id: 2246
  • is_partitioned: True
  • is_schema_datatyped: True
  • name:
    {
        "database": "sfdl_dev_drivethru",
        "table": "hackathonnic_test_partition_table"
    }
  • type: drivethrucsv
Schema Versions: 1
    • created: 2023-10-10 10:23:05
    • ddl:
      [
          "CREATE DATABASE IF NOT EXISTS `sfdl_dev_drivethru`",
          "DROP TABLE IF EXISTS `sfdl_dev_drivethru.hackathonnic_test_partition_table`",
          "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
          "MSCK REPAIR TABLE sfdl_dev_drivethru.hackathonnic_test_partition_table"
      ]
    • hive_path: s3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table
    • id: 4698752
    • processed: 0
    • raw_data:
      {
          "col_a": 0,
          "col_b": 1,
          "col_c": 2,
          "dt": 3
      }
    • schema_attributes:
      {
          "col_a": "string",
          "col_b": "string",
          "col_c": "string",
          "dt": "string"
      }
    • schema_name_id: 2246
    • schema_scan_id: 6325903
    • updated: None
Schema Scans: 1
Last at 2023-10-10 10:23:05
    • duration: 0:00:08.703206
    • exit_message:
      {
          "exception": "failed to apply schema `Query failed: [ErrorCategory:USER_ERROR, ErrorCode:SYNTAX_ERROR], Detail:FAILED: SemanticException [Error 10035]: Column repeated in partitioning columns `CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')``: ['CREATE DATABASE IF NOT EXISTS `sfdl_dev_drivethru`', 'DROP TABLE IF EXISTS `sfdl_dev_drivethru.hackathonnic_test_partition_table`', 'CREATE EXTERNAL TABLE IF NOT EXISTS\\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\\n(\\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table\\'\\nTBLPROPERTIES (\\'skip.header.line.count\\' = \\'1\\')', 'MSCK REPAIR TABLE sfdl_dev_drivethru.hackathonnic_test_partition_table']\nTraceback (most recent call last):\n  File \"/schema_manager/schema_generator/table_generator.py\", line 24, in apply_latest_version\n    self.runner.run_multi_query(schema_version.ddl, timeout=DDLQueueWorker.TIMEOUT)\n  File \"/src/athena-runner/athena_runner/runner.py\", line 133, in run_multi_query\n    result = self.run_single_query(query, timeout, database)\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 10035]: Column repeated in partitioning columns `CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')`\n\nDuring handling of the above exception, another exception occurred:\n\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 98, in run\n    response['ddl_changed'] = table_generator.run()\n  File \"/schema_manager/schema_generator/table_generator.py\", line 35, in run\n    self.apply_latest_version()\n  File \"/schema_manager/schema_generator/table_generator.py\", line 26, in apply_latest_version\n    raise Exception('failed to apply schema `{}`: {}'.format(e, schema_version.ddl))\nException: failed to apply schema `Query failed: [ErrorCategory:USER_ERROR, ErrorCode:SYNTAX_ERROR], Detail:FAILED: SemanticException [Error 10035]: Column repeated in partitioning columns `CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')``: ['CREATE DATABASE IF NOT EXISTS `sfdl_dev_drivethru`', 'DROP TABLE IF EXISTS `sfdl_dev_drivethru.hackathonnic_test_partition_table`', 'CREATE EXTERNAL TABLE IF NOT EXISTS\\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\\n(\\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table\\'\\nTBLPROPERTIES (\\'skip.header.line.count\\' = \\'1\\')', 'MSCK REPAIR TABLE sfdl_dev_drivethru.hackathonnic_test_partition_table']\n: Expecting value: line 1 column 1 (char 0)"
      }
    • id: 6325903
    • payload:
      {
          "datatype_dict": null,
          "file_format": "csv",
          "file_properties": {
              "data_has_header_row": true
          },
          "is_schema_datatyped": true,
          "partition": {
              "location": "s3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10",
              "name": "dt",
              "type": "string",
              "value": "2023-10-10"
          },
          "s3": {
              "bucket": "sfdl-drivethrucsv-drivethru-dev",
              "hive_path": "s3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table",
              "key": "raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10/test21696951377.csv.gz"
          },
          "schema": {
              "name": "sfdl_dev_drivethru.hackathonnic_test_partition_table",
              "type": "drivethrucsv"
          },
          "trace_context": {
              "parent_id": 7526235694062416953,
              "service_name": "drive-thru",
              "span_id": 9230437074341645972,
              "trace_id": 13881023866421468914
          }
      }
    • running: False
    • schema_name_id: 2246
    • start_time: 2023-10-10 10:23:05
    • success: False
    • trace_id: 13881023866421468914
Partitions:
  • count: 1
  • ddl:
    [
        "ALTER TABLE\n    `sfdl_dev_drivethru.hackathonnic_test_partition_table`\nADD\n\n\n PARTITION (dt='2023-10-10') location 's3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10'\n;"
    ]
  • name: dt
  • state:
    [
        {
            "info": {
                "id": 231497,
                "location": "s3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10",
                "name": "dt",
                "value": "2023-10-10"
            },
            "state": {
                "arrival": {
                    "athena_discovery": false,
                    "first_data": "2023-10-10 10:23:05",
                    "last_data": "2023-10-10 10:53:21"
                },
                "parquet": {
                    "first_performed": null,
                    "in_progress": null,
                    "job_id": null,
                    "last_performed": null,
                    "queued": false
                }
            }
        }
    ]
  • type: string
Schema:
  • attributes:
    {
        "col_a": "string",
        "col_b": "string",
        "col_c": "string",
        "dt": "string"
    }
  • created: 2023-10-10 10:23:05
  • ddl:
    {
        "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_dev_drivethru`",
        "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
        "drop_table": "DROP TABLE IF EXISTS `sfdl_dev_drivethru.hackathonnic_test_partition_table`",
        "repair_table": "MSCK REPAIR TABLE sfdl_dev_drivethru.hackathonnic_test_partition_table"
    }
Server:
  • hostname: schemamanager-5447774fc6-4w58v
  • name: schema_manager
  • process_start: 2026-04-02 21:43:44
  • sf_env: dev
  • version: 2427328685
Raw:
{
    "name": {
        "created": "2023-10-10 10:23:05",
        "disabled": false,
        "format": "raw",
        "id": 2246,
        "is_partitioned": true,
        "is_schema_datatyped": true,
        "name": {
            "database": "sfdl_dev_drivethru",
            "table": "hackathonnic_test_partition_table"
        },
        "type": "drivethrucsv"
    },
    "partition": {
        "count": 1,
        "ddl": [
            "ALTER TABLE\n    `sfdl_dev_drivethru.hackathonnic_test_partition_table`\nADD\n\n\n PARTITION (dt='2023-10-10') location 's3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10'\n;"
        ],
        "name": "dt",
        "state": [
            {
                "info": {
                    "id": 231497,
                    "location": "s3://sfdl-drivethrucsv-drivethru-dev/raw_incremental/hackathonnic_test_partition_table/dt=2023-10-10",
                    "name": "dt",
                    "value": "2023-10-10"
                },
                "state": {
                    "arrival": {
                        "athena_discovery": false,
                        "first_data": "2023-10-10 10:23:05",
                        "last_data": "2023-10-10 10:53:21"
                    },
                    "parquet": {
                        "first_performed": null,
                        "in_progress": null,
                        "job_id": null,
                        "last_performed": null,
                        "queued": false
                    }
                }
            }
        ],
        "type": "string"
    },
    "schema": {
        "attributes": {
            "col_a": "string",
            "col_b": "string",
            "col_c": "string",
            "dt": "string"
        },
        "created": "2023-10-10 10:23:05",
        "ddl": {
            "create_database": "CREATE DATABASE IF NOT EXISTS `sfdl_dev_drivethru`",
            "create_table": "CREATE EXTERNAL TABLE IF NOT EXISTS\n`sfdl_dev_drivethru.hackathonnic_test_partition_table`\n(\n `col_a`  string , `col_b`  string , `col_c`  string , `dt`  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-dev/raw_incremental/hackathonnic_test_partition_table'\nTBLPROPERTIES ('skip.header.line.count' = '1')",
            "drop_table": "DROP TABLE IF EXISTS `sfdl_dev_drivethru.hackathonnic_test_partition_table`",
            "repair_table": "MSCK REPAIR TABLE sfdl_dev_drivethru.hackathonnic_test_partition_table"
        }
    },
    "server": {
        "hostname": "schemamanager-5447774fc6-4w58v",
        "name": "schema_manager",
        "process_start": "2026-04-02 21:43:44",
        "sf_env": "dev",
        "version": "2427328685"
    }
}