Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not using $schema_name_error_log, using $database_name_error_log instead #2403

Open
danielvillalbamota opened this issue Sep 3, 2024 · 2 comments

Comments

@danielvillalbamota
Copy link
Collaborator

Description

The "..._error_log" table is not getting the name of the schema as documentation refers, but the name of database.

How-to reproduce

This issue can be reproduced using a sink with datamodel dm-by-fixed-entity-type-database-schema.

Expected behavior

I would expect the table's name as documentation shows.

@AlvaroVega
Copy link
Member

Current implementation is using:

public void createErrorTable(String dataBase, String schema)
throws CygnusRuntimeError, CygnusPersistenceError {
// the default table for error log will be called the same as the destination name
String errorTableName = dataBase + DEFAULT_ERROR_TABLE_SUFFIX;
if (sqlInstance == SQLInstance.POSTGRESQL) {
errorTableName = schema + "." + dataBase + DEFAULT_ERROR_TABLE_SUFFIX;
}

schema + "." + dataBase + DEFAULT_ERROR_TABLE_SUFFIX;

So maybe documentation should be updated to reflect it

@fgalan
Copy link
Member

fgalan commented Sep 9, 2024

PR #2404

@danielvillalbamota should this issue be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants