apache/flink · error · UnsupportedOperationException

Unsupported input message: {value}

Error message

Unsupported input message: {value}

What it means

Error "Unsupported input message: {value}" thrown in apache/flink.

Source

Thrown at flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/table/batch/compact/BatchCompactOperator.java:118

            } else if (paths.size() > 1) {
                Path targetPath =
                        createCompactedFile(
                                paths, getRuntimeContext().getTaskInfo().getAttemptNumber());
                path =
                        CompactFileUtils.doCompact(
                                fileSystem,
                                partition,
                                paths,
                                targetPath,
                                config,
                                readerFactory,
                                writerFactory);
            }
            if (path != null) {
                compactedFiles.computeIfAbsent(partition, k -> new ArrayList<>()).add(path);
            }
        } else {
            throw new UnsupportedOperationException("Unsupported input message: " + value);
        }
    }

    @Override
    public void endInput() throws Exception {
        // emit the compacted files to downstream
        output.collect(new StreamRecord<>(new CompactOutput(compactedFiles)));
    }

    @Override
    public void close() throws Exception {
        compactedFiles.clear();
    }

    private static Path createCompactedFile(List<Path> uncompactedFiles, int attemptNumber) {
        Path path = convertFromUncompacted(uncompactedFiles.get(0));
        // different attempt will have different target paths to avoid different attempts will
        // write same path

View on GitHub (pinned to 2f3c205e92)

Solutions

  1. Address the cause reported by the error message: Unsupported input message: the reported value
  2. Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry.

Example fix

Correct the condition described ("Unsupported input message: the reported value") and rerun the job or command.

When it happens

Trigger: Triggered at runtime when the operation fails because: Unsupported input message: the reported value.

Common situations: Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Unsupported input message: the reported value.


AI-assisted analysis of apache/flink@2f3c205e92 (2026-08-14). Data as JSON: /api/errors/cb96b7c5bb4134e0. Report an issue: GitHub.