<@U04S8PLJWMT> point me to the source code that th...
# ask-ai
y
@kapa.ai point me to the source code that throws this error on postgres source connector:
io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR: feature not supported on beam relations
k
New message text here
y
@kapa.ai how about point me to the source code of postgres-source-connector that throws this error:
io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR:
k
A message from kapa.ai
Based on the knowledge sources provided, the error
io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR:
is mentioned in Airbyte logs and stack traces, but the exact source code file and line in the Postgres source connector where this exception is thrown is not explicitly referenced in the documents. However, from the stack traces, we can infer that the exception is thrown within the Airbyte CDK (Connector Development Kit) in the relational database source state handling logic, specifically in the
SourceStateIterator
class. For example, in a similar context for the MSSQL connector, the stack trace shows:
Copy code
at io.airbyte.cdk.integrations.source.relationaldb.state.SourceStateIterator.computeNext(SourceStateIterator.kt:35)
and
Copy code
at io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.time.format.DateTimeParseException: ...
This suggests that the error is wrapped and thrown by the
SourceStateIterator
in the Airbyte CDK, which is used by the Postgres source connector as well. The actual
PSQLException
is raised by the underlying PostgreSQL JDBC driver, and then wrapped by Airbyte's exception handling logic in the CDK layer, not directly in the Postgres source connector code itself, but in the shared CDK code used by all relational database sources. The knowledge sources do not provide a direct link to the exact file or line in the Postgres source connector, but based on the stack traces, you would want to look at the
SourceStateIterator
class in the Airbyte CDK, which is used by the Postgres source connector to handle stateful incremental syncs and error wrapping. If you need the exact file, you can search for
SourceStateIterator
and
FailedRecordIteratorException
in the Airbyte GitHub repository. But to reiterate, the knowledge sources do not contain a direct reference or link to the specific source code location for this error in the Postgres source connector.
y
@kapa.ai can you point me to the exact line of the code and classes in github
k
A message from kapa.ai
I'm sorry, but the knowledge sources provided do not contain enough information to point you to the exact line of code or specific classes in the Airbyte GitHub repository where the Postgres source connector throws the error:
Copy code
io.airbyte.cdk.integrations.source.relationaldb.state.FailedRecordIteratorException: java.lang.RuntimeException: java.lang.RuntimeException: org.postgresql.util.PSQLException: ERROR:
The documents reference stack traces involving
SourceStateIterator
and
FailedRecordIteratorException
, but they do not include direct links or exact file/line references in the source code. Therefore, I cannot provide the precise GitHub location based solely on the information available in the knowledge sources.