You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "DanielLeens (via GitHub)" <gi...@apache.org> on 2026/04/06 13:36:55 UTC
Re: [PR] [Feature][File] Add pdf parser for RAG support [seatunnel]
DanielLeens commented on PR #10105:
URL: https://github.com/apache/seatunnel/pull/10105#issuecomment-4192541343
I fetched this PR locally. I do not think the current implementation is safe to merge yet.
1. The new `pdf` format is wired into the shared file-base source stack, but `PdfReadStrategy.read()` loads `new File(path)` directly (`seatunnel-connectors-v2/connector-file/connector-file-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/file/source/reader/PdfReadStrategy.java:82-100`). That bypasses the filesystem abstraction used by the HDFS / S3 / OSS / FTP / SFTP file connectors, so this will only work for local filesystem paths even though the feature is exposed through the common file connector layer.
2. The docs update is also incomplete for a user-visible shared feature. The diff only updates `docs/en/connectors/source/LocalFile.md`, while the same file-base capability is exposed by the other source docs and there is no matching `docs/zh/...` update.
Please either scope the feature explicitly to `LocalFile` only, or rework the PDF reader to consume the connector filesystem abstraction so the shared `file_format_type = pdf` contract is actually true.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org