{"record":{"id":"d9148ee20444213c","repo":"apache/seatunnel","slug":"common-illegal-argument-d9148e","errorCode":"COMMON_ILLEGAL_ARGUMENT","errorMessage":"Hive connector only support [text parquet orc] table now","messagePattern":"Hive connector only support \\[text parquet orc\\] table now","errorType":"error_code","errorClass":"HiveConnectorException","httpStatus":null,"severity":"error","filePath":"seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/utils/HiveTableUtils.java","lineNumber":58,"sourceCode":"        }\n        try (HiveMetaStoreProxy hiveMetaStoreProxy = new HiveMetaStoreProxy(readonlyConfig)) {\n            return hiveMetaStoreProxy.getTable(\n                    tablePath.getDatabaseName(), tablePath.getTableName());\n        }\n    }\n\n    public static FileFormat parseFileFormat(Table table) {\n        String inputFormat = table.getSd().getInputFormat();\n        if (HiveConstants.TEXT_INPUT_FORMAT_CLASSNAME.equals(inputFormat)) {\n            return FileFormat.TEXT;\n        }\n        if (HiveConstants.PARQUET_INPUT_FORMAT_CLASSNAME.equals(inputFormat)) {\n            return FileFormat.PARQUET;\n        }\n        if (HiveConstants.ORC_INPUT_FORMAT_CLASSNAME.equals(inputFormat)) {\n            return FileFormat.ORC;\n        }\n        throw new HiveConnectorException(\n                CommonErrorCodeDeprecated.ILLEGAL_ARGUMENT,\n                \"Hive connector only support [text parquet orc] table now\");\n    }\n}\n","sourceCodeStart":40,"sourceCodeEnd":63,"githubUrl":"https://github.com/apache/seatunnel/blob/cf67b549a7a6c35fa0beb12d83c62892427ea919/seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/utils/HiveTableUtils.java#L40-L63","documentation":"HiveTableUtils.parseFileFormat maps a Hive table's `inputFormat` class name to a SeaTunnel FileFormat. Only text (TextInputFormat), parquet (MapredParquetInputFormat), and orc (OrcInputFormat) are supported; any other input format (e.g. Avro, SequenceFile, RCFile) is rejected as an illegal argument.","triggerScenarios":"Calling parseFileFormat with an inputFormat string that matches none of HiveConstants' TEXT/PARQUET/ORC input format classnames — typically the input format read from the Hive metastore Table object of the configured source/sink table.","commonSituations":"The Hive table was created STORED AS AVRO, SEQUENCEFILE, RCFILE, or with a custom InputFormat; the table is a managed table backed by a format SeaTunnel's Hive connector cannot read/write.","solutions":["Recreate the Hive table (or a copy) as STORED AS PARQUET, ORC, or TEXTFILE so the connector can process it.","Use a different SeaTunnel connector that supports the table's actual file format (e.g. the Avro/file connectors reading the underlying path directly).","Verify the table's `input_format` in the metastore (DESC FORMATTED) — a custom/legacy InputFormat class name will never match the supported constants."],"exampleFix":"-- before\nCREATE TABLE t (...) STORED AS AVRO;\n-- after\nCREATE TABLE t (...) STORED AS PARQUET;","handlingStrategy":"validation","validationCode":"Table hiveTable = HiveTableUtils.getTableInfo(readonlyConfig);\nString inputFormat = hiveTable.getSd().getInputFormat();\nboolean supported = HiveConstants.TEXT_INPUT_FORMAT_CLASSNAME.equals(inputFormat)\n    || HiveConstants.PARQUET_INPUT_FORMAT_CLASSNAME.equals(inputFormat)\n    || HiveConstants.ORC_INPUT_FORMAT_CLASSNAME.equals(inputFormat);\nif (!supported) {\n    throw new IllegalArgumentException(\"Unsupported Hive input format: \" + inputFormat);\n}","typeGuard":null,"tryCatchPattern":"try {\n    FileFormat fmt = HiveTableUtils.parseFileFormat(inputFormat);\n} catch (HiveConnectorException e) {\n    // surface the raw inputFormat value and list supported formats\n    throw e;\n}","preventionTips":["Run DESC FORMATTED on the Hive table and confirm input_format is Text/Parquet/ORC before wiring the connector.","Avoid STORED AS AVRO/SEQUENCEFILE/RCFILE tables as SeaTunnel Hive source/sink targets.","Keep table definitions in version control and review their storage format."],"tags":["hive","file-format","unsupported"],"backgroundTag":"unsupported-config-value","analyzedSha":"cf67b549a7a6c35fa0beb12d83c62892427ea919","analyzedAt":"2026-09-10T21:44:55.265Z","contentChangedAt":"2026-09-10T21:44:55.265Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}