Repository navigation
🐛 Source Postgres: views are not listed during schema discovery - #8266
Conversation
|
/test connector=connectors/source-postgres
|
|
/test connector=connectors/source-postgres-strict-encrypt
|
|
/test connector=connectors/source-postgres
|
Oleksandr Sheheda (alexandr-shegeda)
left a comment
There was a problem hiding this comment.
nice job! we can proceed with publishing and merging.
| // we need the schema as different schemas could have tables with the same names | ||
| .schemaName(ofNullable(resultSet.getString(JDBC_COLUMN_SCHEMA_NAME)).orElse(EMPTY)) | ||
| .tableName(ofNullable(resultSet.getString(JDBC_COLUMN_TABLE_NAME)).orElse(EMPTY)) | ||
| .privilege(ofNullable(resultSet.getString(PRIVILEGE)).orElse(EMPTY)) |
There was a problem hiding this comment.
It seems that
protected static final String GRANTEE = "GRANTEE";
protected static final String PRIVILEGE = "PRIVILEGE";
in AbstractJdbcSource class
will not be used after this change, if so could you pls remove them.
|
/publish connector=connectors/source-postgres
|
|
/publish connector=connectors/source-postgres-strict-encrypt
|
…ytehq#8266) * airbyte-8254 Source Postgres: views are not listed during schema discovery * airbyte-8254 Source Postgres: views are not listed during schema discovery * airbyte-8254 Source Postgres: views are not listed during schema discovery * airbyte-8254 Remove GRANTEE and PRIVILEGE constants from AbstractJdbcSource.java * airbyte-8254 Version bumped. * airbyte-8254 Version bumped. * airbyte-8254 Version bumped.
What
During investigation of bug #8254 was found the
DatabaseMetaData.getTablePrivileges()method does not return privileges for VIEWS.How
Instead of using
DatabaseMetaData.getTablePrivileges()use native SQL query to get SELECT privileges for USER tables.Recommended reading order
x.java🚨 User Impact 🚨
Are there any breaking changes? If yes, please make sure to include it here and in any changelogs with the 🚨🚨 emoji
What is the end result perceived by the user?
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/SUMMARY.mddocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing./publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>command is passing./publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changes