Repository navigation
Fix log path to make DBeaver Work + fix version of driver in DBeaver - #367
Merged
Merged
Conversation
gopalldb
approved these changes
Jul 23, 2024
madhav-db
added a commit
that referenced
this pull request
Aug 7, 2024
* Testing the changes * Added test functions to increase codecov * Modifies workflow * Modifies workflow * adds merge config * test * test * test * test * test * test * test * test * test * test * test * Implemented the addBatch and executeBatch functionality Cleaned Code and updated the executeInternal Command Removed PAT Token * Implemented getObject + Tests (#290) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * tests * Added IT, fixed some bugs * addressed gopal's comments * addressed madhav's comments * Added UT for Exception handling in GetObject * Added IT for checking file reads * Fix driver path (#315) * notice * Removed Logger.Error statements and Exceptions from Metrics * Added LIST pattern validator (#321) * testing * added LIST pattern * changes * Implemented putObject + Tests (#294) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * minor changes * formatting * minor changes * added tests * minor changes * Add Notice File * Cleaned the code * Removed addBatch test * Added OVERWRITE feature for UC Volume putObject (#325) * testing * added overwrite feature for putObject * formatting * formatting * formatting * Implemented deleteObject + Tests (#295) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * formatting * Removed query builder use from UC Volume UTs (#326) * testing * removed query builder use from UC Volume UTs * . * minor chages * Exporting usage metrics * Shade dependencies in UBER jar (#319) * Shade dependencies in UBER jar to avoid conflicts and isolate dependencies. * Add SDK logging config because SDK uses SLF4J * Exporting metrics using HTTP headers instead of query paramters * made handleExecution() package private * replaced query parameters to http headers * Skipped flushing metrics when session is closed for integration testing env * Changed the codecov check back to 85% * Added flag parity for enabling telemetry * update sdk version (#333) * Update prCheck.yml * Stub Mappings for UC Volume Storage Management methods (#332) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Introduced error handling when user performs single operation after using batch commands * More robust error handling * Formatting Issues Fixed * set default value of enableTelemetry to 0 * Add changes for input strea, * Add tests * test fix * comment feedback * Added test for ExecuteBatch statment in Prepared statement * Fixed formatting issues * Added unit test for export usage metrics * Add large query integration test * Add large query integration test * Add developers information as required for publishing * Add sources and javadoc plugin integration in POM * Handles empty dbsql version response * Fixes incorrect parsing of char octet length while fetching columns * fmt * Do not package jar in Github Workflows (#344) - Simplify `Integration Tests Workflow`. - No need to package jar in workflows. The test command will automatically compile code. * Sanitize requests before logging (#338) * Removes dbsql check * remove secret * remove unnecessary todo (#350) * Make pooling consistent with simba (#342) * Make pooling consistent with simba * rename * Fix object type in inline [SEA + THRIFT] (#351) * minor * Fix object type in inline * Fix error * add ut * object type converter + driver version change (#348) * minor * tempfix * Done with verification, reverting bugCatcher check * change version * Add change * Add tests * Add check for bigint * Refresh stub mappings for Thrift client for PuPr (#349) * Fixes column types for Metadata and fixes String conversion to byte array for inline results (#353) * remove secret * fix reconverting logic * fix reconverting logic * change reporting version * bump up version * bump up version * [Temporary Bug Fix] Execute multi-chunk and connection tests in thrift workflow (#356) * Adding release workflow including publish to maven * Make the thrift getFunctions working (#358) * minor * Make get functions working * Update release workflow * Fix release workflow * Fix java version and repo * Fix for release * Include tests * Add beta flag * Version change of jar * Fix log path to make DBeaver Work + fix version of driver in DBeaver (#367) * minor * Fix base log and version * fmt * minor logging fix (#368) * Add extra logging * Add extra logging minor change * Added InputStream support for PutObject (IT pending) (#341) * testing * added basic impl of put input stream * added IT * formatting * minor changes * Stub mappings for UC Volume Data Exchange methods (#346) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Stub mappings for get, put, delete * dummy commit * dummy commit * added stub mappings * Remove unnecessary logs (#371) * Update version logs (#372) * addresses comments * Sanitize logs in com.databricks.client.jdbc.DataSource (#375) - Removes password from logs in com.databricks.client.jdbc.DataSource - Fixes the JDBC artifact ID in repo README * Added annotations for metrics (#324) * annotations for recording runtime of DatabricksClient and DatabricksMetadataClient commands * Error Logging (M3 + Logfood) + Refactoring (Metrics + UsageMetrics + Error logs) (#374) * fix driver regex patterns for multiple start line comments. * fmt * thrift metadata changes for test * [ES-1199764] migrate Github actions for repo to IT managed runners (#373) * runner changed to self-hosted * group changed * formatting-check test * macos runner removed for now * fix handling of null for thrift * fix handling of null for thrift * Add unit tests for DatabricksResultSet#getUpdateCount (#380) * [ES-1006739] Minor change in connection to get UC Volume client (#383) * Minor change in connection to get UC Volume client * Minor change * Adding GET extended command for UC volume operation (#384) * Add metadata URL (#385) * [ES-1006739] Add content length parameter for input stream commands (#386) * Adding GET extended command for UC volume operation * Add changes for content length for input commands * [ES-1006739] Input stream support for UC Volume Operation implementation (#382) * changes * Minor test changes * Updated changes * Address comemnts * minor fix * Add integration tests and manual tests for UC volume operations using input stream (#387) * changes * Minor test changes * add tests * . * test * test * Update changes * Update changes2 * fix imports * Address comments * [PECO-1818] Update version to 0.9.1-oss (#388) * benchmarking changes * fmt --------- Co-authored-by: Jothi Prakash <[email protected]> Co-authored-by: Bhuvan Rangoju <[email protected]> Co-authored-by: Agnipratim Nag <[email protected]> Co-authored-by: Samikshya Chand <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: jayantsing-db <[email protected]> Co-authored-by: Vikrant Puppala <[email protected]> Co-authored-by: Shivam Raj <[email protected]>
madhav-db
added a commit
that referenced
this pull request
Aug 21, 2024
* Testing the changes * Added test functions to increase codecov * Modifies workflow * Modifies workflow * adds merge config * test * test * test * test * test * test * test * test * test * test * test * Implemented the addBatch and executeBatch functionality Cleaned Code and updated the executeInternal Command Removed PAT Token * Implemented getObject + Tests (#290) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * tests * Added IT, fixed some bugs * addressed gopal's comments * addressed madhav's comments * Added UT for Exception handling in GetObject * Added IT for checking file reads * Fix driver path (#315) * notice * Removed Logger.Error statements and Exceptions from Metrics * Added LIST pattern validator (#321) * testing * added LIST pattern * changes * Implemented putObject + Tests (#294) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * minor changes * formatting * minor changes * added tests * minor changes * Add Notice File * Cleaned the code * Removed addBatch test * Added OVERWRITE feature for UC Volume putObject (#325) * testing * added overwrite feature for putObject * formatting * formatting * formatting * Implemented deleteObject + Tests (#295) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * formatting * Removed query builder use from UC Volume UTs (#326) * testing * removed query builder use from UC Volume UTs * . * minor chages * Exporting usage metrics * Shade dependencies in UBER jar (#319) * Shade dependencies in UBER jar to avoid conflicts and isolate dependencies. * Add SDK logging config because SDK uses SLF4J * Exporting metrics using HTTP headers instead of query paramters * made handleExecution() package private * replaced query parameters to http headers * Skipped flushing metrics when session is closed for integration testing env * Changed the codecov check back to 85% * Added flag parity for enabling telemetry * update sdk version (#333) * Update prCheck.yml * Stub Mappings for UC Volume Storage Management methods (#332) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Introduced error handling when user performs single operation after using batch commands * More robust error handling * Formatting Issues Fixed * set default value of enableTelemetry to 0 * Add changes for input strea, * Add tests * test fix * comment feedback * Added test for ExecuteBatch statment in Prepared statement * Fixed formatting issues * Added unit test for export usage metrics * Add large query integration test * Add large query integration test * Add developers information as required for publishing * Add sources and javadoc plugin integration in POM * Handles empty dbsql version response * Fixes incorrect parsing of char octet length while fetching columns * fmt * Do not package jar in Github Workflows (#344) - Simplify `Integration Tests Workflow`. - No need to package jar in workflows. The test command will automatically compile code. * Sanitize requests before logging (#338) * Removes dbsql check * remove secret * remove unnecessary todo (#350) * Make pooling consistent with simba (#342) * Make pooling consistent with simba * rename * Fix object type in inline [SEA + THRIFT] (#351) * minor * Fix object type in inline * Fix error * add ut * object type converter + driver version change (#348) * minor * tempfix * Done with verification, reverting bugCatcher check * change version * Add change * Add tests * Add check for bigint * Refresh stub mappings for Thrift client for PuPr (#349) * Fixes column types for Metadata and fixes String conversion to byte array for inline results (#353) * remove secret * fix reconverting logic * fix reconverting logic * change reporting version * bump up version * bump up version * [Temporary Bug Fix] Execute multi-chunk and connection tests in thrift workflow (#356) * Adding release workflow including publish to maven * Make the thrift getFunctions working (#358) * minor * Make get functions working * Update release workflow * Fix release workflow * Fix java version and repo * Fix for release * Include tests * Add beta flag * Version change of jar * Fix log path to make DBeaver Work + fix version of driver in DBeaver (#367) * minor * Fix base log and version * fmt * minor logging fix (#368) * Add extra logging * Add extra logging minor change * Added InputStream support for PutObject (IT pending) (#341) * testing * added basic impl of put input stream * added IT * formatting * minor changes * Stub mappings for UC Volume Data Exchange methods (#346) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Stub mappings for get, put, delete * dummy commit * dummy commit * added stub mappings * Remove unnecessary logs (#371) * Update version logs (#372) * addresses comments * Sanitize logs in com.databricks.client.jdbc.DataSource (#375) - Removes password from logs in com.databricks.client.jdbc.DataSource - Fixes the JDBC artifact ID in repo README * Added annotations for metrics (#324) * annotations for recording runtime of DatabricksClient and DatabricksMetadataClient commands * Error Logging (M3 + Logfood) + Refactoring (Metrics + UsageMetrics + Error logs) (#374) * fix driver regex patterns for multiple start line comments. * fmt * thrift metadata changes for test * [ES-1199764] migrate Github actions for repo to IT managed runners (#373) * runner changed to self-hosted * group changed * formatting-check test * macos runner removed for now * fix handling of null for thrift * fix handling of null for thrift * Add unit tests for DatabricksResultSet#getUpdateCount (#380) * [ES-1006739] Minor change in connection to get UC Volume client (#383) * Minor change in connection to get UC Volume client * Minor change * Adding GET extended command for UC volume operation (#384) * Add metadata URL (#385) * [ES-1006739] Add content length parameter for input stream commands (#386) * Adding GET extended command for UC volume operation * Add changes for content length for input commands * [ES-1006739] Input stream support for UC Volume Operation implementation (#382) * changes * Minor test changes * Updated changes * Address comemnts * minor fix * Add integration tests and manual tests for UC volume operations using input stream (#387) * changes * Minor test changes * add tests * . * test * test * Update changes * Update changes2 * fix imports * Address comments * [PECO-1818] Update version to 0.9.1-oss (#388) * benchmarking changes * fmt * [PECO-1818] Enable autoRelease for staging maven packages (#392) * [PECO-1818] Update version to 0.9.1-oss * Enabling autoReleaseAfterClose for staging maven packages * Fix connection integration tests to use default catalog (#389) - Default catalog was changed as part of 6453659. Tests will now use default catalog configured in test properties. - Some cosmetic changes as well. * [PECO-1671] removed hard-coded precision, scale in ResultSetMetadata (#313) * removed hard-coded precision, scale in ResultSetMetadata * Default value for timestamp, float, double changed * added method for scale and precision * code cov * Support for SLF4J and Java Util Logging (#355) - The driver now supports both SLF4J and Java Util Logging (JUL). - The customer application can select the logging implementation by setting the system property `com.databricks.jdbc.loggerImpl`. For example: `java -jar application.jar -Dcom.databricks.jdbc.loggerImpl=JDKLOGGER` - If the property is set to `SLF4JLOGGER` (case-insensitive), the driver will use SLF4J for logging. - Note: The driver does not include SLF4J, SLF4J binding, or configuration files as dependencies. Therefore, if the customer application chooses SLF4J, it must provide the appropriate SLF4J, SLF4J binding, and configuration files in the classpath. - If the property is set to `JDKLOGGER` (case-insensitive), the driver will use Java Util Logging (JUL). - By default, driver will choose Java Util Logging (JUL). - If the customer application has set the system property `java.util.logging.config.file` pointing to a JUL configuration file in the classpath, the driver’s JUL logger will inherit this configuration. - If the system property `java.util.logging.config.file` is not set, the driver’s JUL logger can be configured using JDBC URL parameters: `logPath` (case-insensitive), `logLevel` (case-insensitive), `logFileCount` (case-insensitive), and `logFileSize` (case-insensitive). By default, `logLevel` is set to `Level.OFF` and `logPath` is set to the present working directory. - The driver’s JUL will create log files with the pattern `databricks_jdbc.log.<file_index>` under the specified `logPath`. - Developers are discouraged from using the central logging utility class `com.databricks.jdbc.commons.util.LoggingUtil`, which will be deprecated. Instead, each class should instantiate a static logger instance using `JdbcLoggerFactory#getLogger(Class<?>)`. - Both logging implementations share a common interface `com.databricks.jdbc.log.JdbcLogger`. - The SLF4J dependency is marked as provided. The scope of SLF4J binding (log4j) is reduced to tests. - The `log4j2.xml` configuration file is removed from `src/main/resources`. A `logging.properties` configuration file is added in `src/test/resources` for local development and testing. * fix charOctetLength (#394) * fix charOctetLength * Simba parity --------- Co-authored-by: Jothi Prakash <[email protected]> Co-authored-by: Bhuvan Rangoju <[email protected]> Co-authored-by: Agnipratim Nag <[email protected]> Co-authored-by: Samikshya Chand <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: jayantsing-db <[email protected]> Co-authored-by: Vikrant Puppala <[email protected]> Co-authored-by: Shivam Raj <[email protected]>
madhav-db
added a commit
that referenced
this pull request
Aug 28, 2024
* Testing the changes * Added test functions to increase codecov * Modifies workflow * Modifies workflow * adds merge config * test * test * test * test * test * test * test * test * test * test * test * Implemented the addBatch and executeBatch functionality Cleaned Code and updated the executeInternal Command Removed PAT Token * Implemented getObject + Tests (#290) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * tests * Added IT, fixed some bugs * addressed gopal's comments * addressed madhav's comments * Added UT for Exception handling in GetObject * Added IT for checking file reads * Fix driver path (#315) * notice * Removed Logger.Error statements and Exceptions from Metrics * Added LIST pattern validator (#321) * testing * added LIST pattern * changes * Implemented putObject + Tests (#294) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * minor changes * formatting * minor changes * added tests * minor changes * Add Notice File * Cleaned the code * Removed addBatch test * Added OVERWRITE feature for UC Volume putObject (#325) * testing * added overwrite feature for putObject * formatting * formatting * formatting * Implemented deleteObject + Tests (#295) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * formatting * Removed query builder use from UC Volume UTs (#326) * testing * removed query builder use from UC Volume UTs * . * minor chages * Exporting usage metrics * Shade dependencies in UBER jar (#319) * Shade dependencies in UBER jar to avoid conflicts and isolate dependencies. * Add SDK logging config because SDK uses SLF4J * Exporting metrics using HTTP headers instead of query paramters * made handleExecution() package private * replaced query parameters to http headers * Skipped flushing metrics when session is closed for integration testing env * Changed the codecov check back to 85% * Added flag parity for enabling telemetry * update sdk version (#333) * Update prCheck.yml * Stub Mappings for UC Volume Storage Management methods (#332) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Introduced error handling when user performs single operation after using batch commands * More robust error handling * Formatting Issues Fixed * set default value of enableTelemetry to 0 * Add changes for input strea, * Add tests * test fix * comment feedback * Added test for ExecuteBatch statment in Prepared statement * Fixed formatting issues * Added unit test for export usage metrics * Add large query integration test * Add large query integration test * Add developers information as required for publishing * Add sources and javadoc plugin integration in POM * Handles empty dbsql version response * Fixes incorrect parsing of char octet length while fetching columns * fmt * Do not package jar in Github Workflows (#344) - Simplify `Integration Tests Workflow`. - No need to package jar in workflows. The test command will automatically compile code. * Sanitize requests before logging (#338) * Removes dbsql check * remove secret * remove unnecessary todo (#350) * Make pooling consistent with simba (#342) * Make pooling consistent with simba * rename * Fix object type in inline [SEA + THRIFT] (#351) * minor * Fix object type in inline * Fix error * add ut * object type converter + driver version change (#348) * minor * tempfix * Done with verification, reverting bugCatcher check * change version * Add change * Add tests * Add check for bigint * Refresh stub mappings for Thrift client for PuPr (#349) * Fixes column types for Metadata and fixes String conversion to byte array for inline results (#353) * remove secret * fix reconverting logic * fix reconverting logic * change reporting version * bump up version * bump up version * [Temporary Bug Fix] Execute multi-chunk and connection tests in thrift workflow (#356) * Adding release workflow including publish to maven * Make the thrift getFunctions working (#358) * minor * Make get functions working * Update release workflow * Fix release workflow * Fix java version and repo * Fix for release * Include tests * Add beta flag * Version change of jar * Fix log path to make DBeaver Work + fix version of driver in DBeaver (#367) * minor * Fix base log and version * fmt * minor logging fix (#368) * Add extra logging * Add extra logging minor change * Added InputStream support for PutObject (IT pending) (#341) * testing * added basic impl of put input stream * added IT * formatting * minor changes * Stub mappings for UC Volume Data Exchange methods (#346) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Stub mappings for get, put, delete * dummy commit * dummy commit * added stub mappings * Remove unnecessary logs (#371) * Update version logs (#372) * addresses comments * Sanitize logs in com.databricks.client.jdbc.DataSource (#375) - Removes password from logs in com.databricks.client.jdbc.DataSource - Fixes the JDBC artifact ID in repo README * Added annotations for metrics (#324) * annotations for recording runtime of DatabricksClient and DatabricksMetadataClient commands * Error Logging (M3 + Logfood) + Refactoring (Metrics + UsageMetrics + Error logs) (#374) * fix driver regex patterns for multiple start line comments. * fmt * thrift metadata changes for test * [ES-1199764] migrate Github actions for repo to IT managed runners (#373) * runner changed to self-hosted * group changed * formatting-check test * macos runner removed for now * fix handling of null for thrift * fix handling of null for thrift * Add unit tests for DatabricksResultSet#getUpdateCount (#380) * [ES-1006739] Minor change in connection to get UC Volume client (#383) * Minor change in connection to get UC Volume client * Minor change * Adding GET extended command for UC volume operation (#384) * Add metadata URL (#385) * [ES-1006739] Add content length parameter for input stream commands (#386) * Adding GET extended command for UC volume operation * Add changes for content length for input commands * [ES-1006739] Input stream support for UC Volume Operation implementation (#382) * changes * Minor test changes * Updated changes * Address comemnts * minor fix * Add integration tests and manual tests for UC volume operations using input stream (#387) * changes * Minor test changes * add tests * . * test * test * Update changes * Update changes2 * fix imports * Address comments * [PECO-1818] Update version to 0.9.1-oss (#388) * benchmarking changes * fmt * [PECO-1818] Enable autoRelease for staging maven packages (#392) * [PECO-1818] Update version to 0.9.1-oss * Enabling autoReleaseAfterClose for staging maven packages * Fix connection integration tests to use default catalog (#389) - Default catalog was changed as part of 6453659. Tests will now use default catalog configured in test properties. - Some cosmetic changes as well. * [PECO-1671] removed hard-coded precision, scale in ResultSetMetadata (#313) * removed hard-coded precision, scale in ResultSetMetadata * Default value for timestamp, float, double changed * added method for scale and precision * code cov * Support for SLF4J and Java Util Logging (#355) - The driver now supports both SLF4J and Java Util Logging (JUL). - The customer application can select the logging implementation by setting the system property `com.databricks.jdbc.loggerImpl`. For example: `java -jar application.jar -Dcom.databricks.jdbc.loggerImpl=JDKLOGGER` - If the property is set to `SLF4JLOGGER` (case-insensitive), the driver will use SLF4J for logging. - Note: The driver does not include SLF4J, SLF4J binding, or configuration files as dependencies. Therefore, if the customer application chooses SLF4J, it must provide the appropriate SLF4J, SLF4J binding, and configuration files in the classpath. - If the property is set to `JDKLOGGER` (case-insensitive), the driver will use Java Util Logging (JUL). - By default, driver will choose Java Util Logging (JUL). - If the customer application has set the system property `java.util.logging.config.file` pointing to a JUL configuration file in the classpath, the driver’s JUL logger will inherit this configuration. - If the system property `java.util.logging.config.file` is not set, the driver’s JUL logger can be configured using JDBC URL parameters: `logPath` (case-insensitive), `logLevel` (case-insensitive), `logFileCount` (case-insensitive), and `logFileSize` (case-insensitive). By default, `logLevel` is set to `Level.OFF` and `logPath` is set to the present working directory. - The driver’s JUL will create log files with the pattern `databricks_jdbc.log.<file_index>` under the specified `logPath`. - Developers are discouraged from using the central logging utility class `com.databricks.jdbc.commons.util.LoggingUtil`, which will be deprecated. Instead, each class should instantiate a static logger instance using `JdbcLoggerFactory#getLogger(Class<?>)`. - Both logging implementations share a common interface `com.databricks.jdbc.log.JdbcLogger`. - The SLF4J dependency is marked as provided. The scope of SLF4J binding (log4j) is reduced to tests. - The `log4j2.xml` configuration file is removed from `src/main/resources`. A `logging.properties` configuration file is added in `src/test/resources` for local development and testing. * fix charOctetLength (#394) * fix charOctetLength * Simba parity * Do not set catalog and schema by default unless user-specified (#399) * Increase the scope of slf4j-api to compile (#403) * Increase the scope of slf4j-api to compile Earlier the scope was `provided` so that customers have complete freedom to choose slf4j and binding pair. But since, databricks-sdk uses slf4j, databricks driver need to include it in compile time. * Do not shade slf4j A shaded slf4j would require shaded bindings * Repackaging source files (commit 1) (#402) * Repackaging source files (commit 1) - Consolidate common and util classes (Few classes might be left out for later commits) - com/databricks/jdbc/client/impl/sdk -> com/databricks/jdbc/client/impl/sqlexec * Exclude DatabricksMetadataSdkClient from test coverage * separate steps for running metadata and large query benchmarks (#408) * Minor fix for Volume operation metadata for Thrift mode (#410) * [ES-1227931] Unify timezones to UTC in OSS JDBC (#411) * timezone set to utc * Sunset username (#412) * Feature parity * Modify * Repackaging source files (commit 2) (#405) Model refactoring into two sub packages - `model.core`: Containing model/data classes for core functional classes - `model.client`: Containing model/data classes (request objects, response objects, etc.) for client classes Added an `exception` package to house all exceptions Test classes refactoring - Matching the source files package structure - Cosmetic/basic refactoring Changes to `pom.xml` to account for new package structure Consolidating common and util classes (continued) `client.http` (containing HTTP client implementations) -> `client.impl.http` `MetricsConstants.java` -> `com.databricks.jdbc.telemetry` (only used in telemetry code) `ArrowToJavaObjectConverter.java` -> `com.databricks.jdbc.core.converters` `DatabricksJdbcConstants.java` -> `com.databricks.jdbc.common` `com.databricks.jdbc.driver` -> `com.databricks.jdbc.core` (No specific reason for having a separate driver package) `com.databricks.jdbc.core` -> `com.databricks.jdbc.api` and `com.databricks.jdbc.api.impl` (Discussed in [design doc](https://docs.google.com/document/d/1Ov6nGADV0TYI5DrbdALlAmL-SZZ_4AowGP1x1gMgJwE/edit?pli=1#heading=h.vmmqwlcnmydp)) `com.databricks.jdbc.client` -> `com.databricks.jdbc.dbclient` ([refer](https://docs.google.com/document/d/1Ov6nGADV0TYI5DrbdALlAmL-SZZ_4AowGP1x1gMgJwE/edit?disco=AAABUX89vpY)) * [PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital (#404) * metadata issues fix * buffer length added * added test for buffer length * added typeval constants * resolved conflicts * Revert "[PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital (#404)" (#415) * [PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital #404 (#416) * metadata issues fix * buffer length added * added typeval constants * resolved conflicts * Repackaging source files (commit 3) (#413) Move thrift generated models to `com.databricks.jdbc.model.client.thrift.generated`. * Release new version (#417) * Move UCVolumeClient to jdbc.api instead of jdbc.dbclient, also refactored Volume related classes to separate impl.volume sub-package (#418) * [PECO-1883] Rename interfaces to be consistent with other interfaces (#420) * Move UCVolumeClient to jdbc.api instead of jdbc.dbclient, also refactored Volume related classes to separate impl.volume sub-package * Rename interfaces to be consistent with other interfaces * Minor Changes * Simplify `jdbc.api.impl` (#421) - Classes inside `jdbc.api.impl` are further divided into logical groups - `jdbc.api.impl.arrow`: Contains classes related to arrow results and cloud fetch - `jdbc.api.impl.inline`: Classes for inline results - `jdbc.api.impl.fake`: Placeholder classes like empty result set and empty meta data - `jdbc.auth` is added to house auth classes - Corresponding refactoring of test classes --------- Co-authored-by: Jothi Prakash <[email protected]> Co-authored-by: Bhuvan Rangoju <[email protected]> Co-authored-by: Agnipratim Nag <[email protected]> Co-authored-by: Samikshya Chand <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: jayantsing-db <[email protected]> Co-authored-by: Vikrant Puppala <[email protected]> Co-authored-by: Shivam Raj <[email protected]>
samikshya-db
added a commit
that referenced
this pull request
Oct 17, 2024
* made handleExecution() package private * replaced query parameters to http headers * Skipped flushing metrics when session is closed for integration testing env * Changed the codecov check back to 85% * Added flag parity for enabling telemetry * update sdk version (#333) * Update prCheck.yml * Stub Mappings for UC Volume Storage Management methods (#332) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Introduced error handling when user performs single operation after using batch commands * More robust error handling * Formatting Issues Fixed * set default value of enableTelemetry to 0 * Add changes for input strea, * Add tests * test fix * comment feedback * Added test for ExecuteBatch statment in Prepared statement * Fixed formatting issues * Added unit test for export usage metrics * Add large query integration test * Add large query integration test * Add developers information as required for publishing * Add sources and javadoc plugin integration in POM * Handles empty dbsql version response * Fixes incorrect parsing of char octet length while fetching columns * fmt * Do not package jar in Github Workflows (#344) - Simplify `Integration Tests Workflow`. - No need to package jar in workflows. The test command will automatically compile code. * Sanitize requests before logging (#338) * Removes dbsql check * remove secret * remove unnecessary todo (#350) * Make pooling consistent with simba (#342) * Make pooling consistent with simba * rename * Fix object type in inline [SEA + THRIFT] (#351) * minor * Fix object type in inline * Fix error * add ut * object type converter + driver version change (#348) * minor * tempfix * Done with verification, reverting bugCatcher check * change version * Add change * Add tests * Add check for bigint * Refresh stub mappings for Thrift client for PuPr (#349) * Fixes column types for Metadata and fixes String conversion to byte array for inline results (#353) * remove secret * fix reconverting logic * fix reconverting logic * change reporting version * bump up version * bump up version * [Temporary Bug Fix] Execute multi-chunk and connection tests in thrift workflow (#356) * Adding release workflow including publish to maven * Make the thrift getFunctions working (#358) * minor * Make get functions working * Update release workflow * Fix release workflow * Fix java version and repo * Fix for release * Include tests * Add beta flag * Version change of jar * Fix log path to make DBeaver Work + fix version of driver in DBeaver (#367) * minor * Fix base log and version * fmt * minor logging fix (#368) * Add extra logging * Add extra logging minor change * Added InputStream support for PutObject (IT pending) (#341) * testing * added basic impl of put input stream * added IT * formatting * minor changes * Stub mappings for UC Volume Data Exchange methods (#346) * testing * implemented getObject + UT * formatting * minor changes * bugfix * minor changes * added putobject + UT * formatting * added deleteObject * minor changes * formatting * minor changes * added tests * minor changes * added tests * minor changes * minor changes * updates * updates * minor changes * removed query builder use from UC Volume UTs * . * changes * Added stub mappings for UC Volume storage management methods * minor changes * Stub mappings for get, put, delete * dummy commit * dummy commit * added stub mappings * Remove unnecessary logs (#371) * Update version logs (#372) * addresses comments * Sanitize logs in com.databricks.client.jdbc.DataSource (#375) - Removes password from logs in com.databricks.client.jdbc.DataSource - Fixes the JDBC artifact ID in repo README * Added annotations for metrics (#324) * annotations for recording runtime of DatabricksClient and DatabricksMetadataClient commands * Error Logging (M3 + Logfood) + Refactoring (Metrics + UsageMetrics + Error logs) (#374) * fix driver regex patterns for multiple start line comments. * fmt * thrift metadata changes for test * [ES-1199764] migrate Github actions for repo to IT managed runners (#373) * runner changed to self-hosted * group changed * formatting-check test * macos runner removed for now * fix handling of null for thrift * fix handling of null for thrift * Add unit tests for DatabricksResultSet#getUpdateCount (#380) * [ES-1006739] Minor change in connection to get UC Volume client (#383) * Minor change in connection to get UC Volume client * Minor change * Adding GET extended command for UC volume operation (#384) * Add metadata URL (#385) * [ES-1006739] Add content length parameter for input stream commands (#386) * Adding GET extended command for UC volume operation * Add changes for content length for input commands * [ES-1006739] Input stream support for UC Volume Operation implementation (#382) * changes * Minor test changes * Updated changes * Address comemnts * minor fix * Add integration tests and manual tests for UC volume operations using input stream (#387) * changes * Minor test changes * add tests * . * test * test * Update changes * Update changes2 * fix imports * Address comments * [PECO-1818] Update version to 0.9.1-oss (#388) * benchmarking changes * fmt * [PECO-1818] Enable autoRelease for staging maven packages (#392) * [PECO-1818] Update version to 0.9.1-oss * Enabling autoReleaseAfterClose for staging maven packages * Fix connection integration tests to use default catalog (#389) - Default catalog was changed as part of 6453659. Tests will now use default catalog configured in test properties. - Some cosmetic changes as well. * [PECO-1671] removed hard-coded precision, scale in ResultSetMetadata (#313) * removed hard-coded precision, scale in ResultSetMetadata * Default value for timestamp, float, double changed * added method for scale and precision * code cov * Support for SLF4J and Java Util Logging (#355) - The driver now supports both SLF4J and Java Util Logging (JUL). - The customer application can select the logging implementation by setting the system property `com.databricks.jdbc.loggerImpl`. For example: `java -jar application.jar -Dcom.databricks.jdbc.loggerImpl=JDKLOGGER` - If the property is set to `SLF4JLOGGER` (case-insensitive), the driver will use SLF4J for logging. - Note: The driver does not include SLF4J, SLF4J binding, or configuration files as dependencies. Therefore, if the customer application chooses SLF4J, it must provide the appropriate SLF4J, SLF4J binding, and configuration files in the classpath. - If the property is set to `JDKLOGGER` (case-insensitive), the driver will use Java Util Logging (JUL). - By default, driver will choose Java Util Logging (JUL). - If the customer application has set the system property `java.util.logging.config.file` pointing to a JUL configuration file in the classpath, the driver’s JUL logger will inherit this configuration. - If the system property `java.util.logging.config.file` is not set, the driver’s JUL logger can be configured using JDBC URL parameters: `logPath` (case-insensitive), `logLevel` (case-insensitive), `logFileCount` (case-insensitive), and `logFileSize` (case-insensitive). By default, `logLevel` is set to `Level.OFF` and `logPath` is set to the present working directory. - The driver’s JUL will create log files with the pattern `databricks_jdbc.log.<file_index>` under the specified `logPath`. - Developers are discouraged from using the central logging utility class `com.databricks.jdbc.commons.util.LoggingUtil`, which will be deprecated. Instead, each class should instantiate a static logger instance using `JdbcLoggerFactory#getLogger(Class<?>)`. - Both logging implementations share a common interface `com.databricks.jdbc.log.JdbcLogger`. - The SLF4J dependency is marked as provided. The scope of SLF4J binding (log4j) is reduced to tests. - The `log4j2.xml` configuration file is removed from `src/main/resources`. A `logging.properties` configuration file is added in `src/test/resources` for local development and testing. * fix charOctetLength (#394) * fix charOctetLength * Simba parity * Do not set catalog and schema by default unless user-specified (#399) * Increase the scope of slf4j-api to compile (#403) * Increase the scope of slf4j-api to compile Earlier the scope was `provided` so that customers have complete freedom to choose slf4j and binding pair. But since, databricks-sdk uses slf4j, databricks driver need to include it in compile time. * Do not shade slf4j A shaded slf4j would require shaded bindings * Repackaging source files (commit 1) (#402) * Repackaging source files (commit 1) - Consolidate common and util classes (Few classes might be left out for later commits) - com/databricks/jdbc/client/impl/sdk -> com/databricks/jdbc/client/impl/sqlexec * Exclude DatabricksMetadataSdkClient from test coverage * separate steps for running metadata and large query benchmarks (#408) * Minor fix for Volume operation metadata for Thrift mode (#410) * [ES-1227931] Unify timezones to UTC in OSS JDBC (#411) * timezone set to utc * Sunset username (#412) * Feature parity * Modify * Repackaging source files (commit 2) (#405) Model refactoring into two sub packages - `model.core`: Containing model/data classes for core functional classes - `model.client`: Containing model/data classes (request objects, response objects, etc.) for client classes Added an `exception` package to house all exceptions Test classes refactoring - Matching the source files package structure - Cosmetic/basic refactoring Changes to `pom.xml` to account for new package structure Consolidating common and util classes (continued) `client.http` (containing HTTP client implementations) -> `client.impl.http` `MetricsConstants.java` -> `com.databricks.jdbc.telemetry` (only used in telemetry code) `ArrowToJavaObjectConverter.java` -> `com.databricks.jdbc.core.converters` `DatabricksJdbcConstants.java` -> `com.databricks.jdbc.common` `com.databricks.jdbc.driver` -> `com.databricks.jdbc.core` (No specific reason for having a separate driver package) `com.databricks.jdbc.core` -> `com.databricks.jdbc.api` and `com.databricks.jdbc.api.impl` (Discussed in [design doc](https://docs.google.com/document/d/1Ov6nGADV0TYI5DrbdALlAmL-SZZ_4AowGP1x1gMgJwE/edit?pli=1#heading=h.vmmqwlcnmydp)) `com.databricks.jdbc.client` -> `com.databricks.jdbc.dbclient` ([refer](https://docs.google.com/document/d/1Ov6nGADV0TYI5DrbdALlAmL-SZZ_4AowGP1x1gMgJwE/edit?disco=AAABUX89vpY)) * [PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital (#404) * metadata issues fix * buffer length added * added test for buffer length * added typeval constants * resolved conflicts * Revert "[PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital (#404)" (#415) * [PECO-1856] [OSS JDBC] Metadata issues with Denodo/TPG Capital #404 (#416) * metadata issues fix * buffer length added * added typeval constants * resolved conflicts * Repackaging source files (commit 3) (#413) Move thrift generated models to `com.databricks.jdbc.model.client.thrift.generated`. * Release new version (#417) * Move UCVolumeClient to jdbc.api instead of jdbc.dbclient, also refactored Volume related classes to separate impl.volume sub-package (#418) * [PECO-1883] Rename interfaces to be consistent with other interfaces (#420) * Move UCVolumeClient to jdbc.api instead of jdbc.dbclient, also refactored Volume related classes to separate impl.volume sub-package * Rename interfaces to be consistent with other interfaces * Minor Changes * Simplify `jdbc.api.impl` (#421) - Classes inside `jdbc.api.impl` are further divided into logical groups - `jdbc.api.impl.arrow`: Contains classes related to arrow results and cloud fetch - `jdbc.api.impl.inline`: Classes for inline results - `jdbc.api.impl.fake`: Placeholder classes like empty result set and empty meta data - `jdbc.auth` is added to house auth classes - Corresponding refactoring of test classes * update commands to run benchmarking tests (#423) * update commands to run benchmarking tests (#424) * Updates compiling logic for benchmarking workflows to run (#425) * temp * temp * temp * temp * temp * updates compiling logic for benchmarking workflows to run * updates compiling logic for benchmarking workflows to run * updates compiling logic for benchmarking workflows to run * Metadata fixes (#426) * nullabe col data type changed to integer * complex data types fixed * M2M JWT support (#395) Custom client credential support * [PECO-1890] Add builder to ArrowResultChunk and other clean-up (#414) These changes are part of team's OSS effort - Add builder to improve readability and flexibility - Simplify the usage of arrow classes to read arrow data - Catch specific exceptions - Cosmetic changes * added credential provider OAuthRefresh only (#419) added credential provider for OAuthRefresh only * table type empty string fix (#429) * Bump up version (#434) * Minor fixes to Converters (#427) * Added logging for poll count in execute statement (#437) * Added logging for poll count in execute statement * Minor change * Better logging for timeout and execute (#439) * Add logs for timeout * Add logs for execute * [PECO-1900]fix refresh token flow (#440) * Changes to thrift getTables call to align with jdbc standard (#396) * changes to thrift get tables call * fmt * Close the allocator after data is initialized (#441) There might be cases when root allocator is in use by incomplete arrow data. Consider the below scenario: - Data init fails for some chunk which causes 1. interrupts to chunks further ahead 2. release of all chunks - As part of release, I was closing the allocator. But other threads might still be using allocator in uninitialised data Note that we were not closing allocator in previous versions. So the issue didn't surface. But it's generally good to close it wherever possible. * clean up auth flow (#433) Clean up the auth flow * Make DatabricksConnectionContext package-private (#450) Make DatabricksConnectionContext package-private Few other refactoring changes: - Separate out JDBC URL params constants - Changes to test files - Add connection context factory * convert url params to enum (#451) * Fix column name columns [Thrift Bug] + Improve execution SEA debugging (#444) * fix column name columns * Add cols * Add fix for short server results * Add error code for sea flow + fix thrift utils * Remove log * Fix ordinal position * FMT * address null * Fix resource leak in DatabricksUCVolumeClient (#447) * Fix resource leak in DatabricksUCVolumeClient * Add retry logic to chunk download (#454) ## Description Following retry logic is added to chunk download (cloud fetch): - when chunk download or reading fails, the status is set to `DOWNLOAD_FAILED` in the class `ArrowResultChunk` - the exception is caught by class `SingleChunkDownloader` where it retries the download (it will retry link download too if link has expired) until fixed number of times (3) and a delay (1 second) - when the chunk is being retried, the status is set to `DOWNLOAD_RETRY`. If all attempts are exhausted, the status is set to `DOWNLOAD_FAILED` - The new status is introduced to prevent race conditions and bad behaviour during spurious wake-ups ## Testing - Unit tests that throw socket exception for few attempts and test retry logic - FakeService tests - DriverTester - Added a method in Driver tester to test retry by inject exceptions manually * Add a lightweight script to auto-populate version in source files (#393) ## Description The script will be used in release workflow to automatically update version in source files before pushing to Maven. The script picks up the new version using an environment variable. ## Testing Manual testing in MacOS and Linux environment. * Fix flaky unit tests (#457) * Do not send HTTP requests in DatabricksMetricsTest (#462) * Migrating from LoggerUtil to JdbcLogger across all the files (#436) * Changed LoggerUtil to JdbcLogger * Changed the refractoring way * Minor fix * Refractored the loggingutil to logger in code base * removed pat * Logging refractoring changes (#442) * Refractored the code * LoggerUtil refractoring to LOGGER (#443) * Refractored the code from loggingUtil to Logger * Refractoring from LoggingUtil to LOGGER (#445) * Refractoring from LoggingUtil to LOGGER * Refractored the code * Added exception object to error logging * Refractoring fixes * Refractored * Formatting fix * Added a line after the class declaration * Add CODE_OF_CONDUCT to repo root (#464) * Remove logging TODO (#466) * throw exception for statement timeout (#465) * [PECO-1916] [PECO-1915] Fix Prepare statement for thrift and set default timestamps (#467) * Interpolate for thrift * Fix timestamps * fmt * Add test * Remove stale TODOs (#469) * Remove stale TODO (#470) * Add telemetry logs in cloud fetch (#472) This is to explore any opportunity to limit the size of root allocator * Address TODOs (#473) - Add few more escape seq processing in #convertJdbcEscapeSequences - Remove future API test TODO as it is JDK tested * Increase chunk download retries (#474) from 3 to 5. * Updated passthrough tokens with backward compatibility with existing driver (#471) * Updated passthrough tokens with backward compatibility with existing driver * Skip caching access token * Fixes * Fixes minor * [PECO-1911] [OSS JDBC] getTables inconsistency (#453) * metadata passed in buildresultset * non nullablr cols defined for metadata calls * column metadata object created * removed redundant getPrecision and getScale method * removed INFORMATION_NAME column from getTables result * Bump version to 0.9.4-oss (#475) * [PECO-1828] Support proxy ignore list (#477) Add support for proxy ignore list * Add a callback interface to remove cyclic reference in chunk download (#463) * [PECO-1886] Consolidate http retry handling in DatabricksHttpRetryHandler (#431) This encapsulates the retry handling in a separate clas. * [ES-1235956] Change thread pool size for getFutureResult (#476) * [ES-1235956] Change thread pool size for getFutureResult * fmt * undid default check * [DatabricksConnection] [IDatabricksConnectionContext] Fix and proposal (#448) * [DatabricksConnection] Fix thread-safe and resource leak * Add changelog (#481) * Shade cryptographic JWT helper packages before OSS (#483) * Shade cryptographic JWT helper packages before OSS * Address comments * Rename scripts to bin (#480) * Add logging for logging (#486) * Make UC Volume processing synchronous, since anyways the main threads waits for the operation to be complete (#484) * Remove redundant Volume Operation separate executor * Add minor fix * Some advice on logger (#446) * Remove redundanat CommandName in getThriftResponse (#488) * [PECO-1779] Add SSL Truststore URL params to allow configuring custom SSL truststore (#490) Added SSL Truststore params and add default value to url params * Return result set with empty data for DatabricksDatabaseMetaData#getSchemas() (#492) This is in context of a BI tool (DBeaver, SquirreLSQL, Denodo, etc.) using the OSS JDBC driver. - DatabricksDatabaseMetaData has two implementations, SQL_EXEC and THRIFT - All public methods of DatabricksDatabaseMetaData **that return a result set** (columns, tables, schemas, catalogs, etc.) have parameters like catalog, schema-pattern, table-pattern, etc. except: - _getSchemas()_ - _getCatalogs()_ - _getTableTypes()_ - _getTypeInfo()_ - For methods with explicit parameters for _catalog_, _schema-pattern_, _table-pattern_, etc., the typical usage by BI tools is non-byzantine. Meaning, certain explicit parameters will be non-null, meaningful, etc. To enforce this, the methods in question have appropriate validation routines. These validations are put in place based on whether the particular implementation being used (SQL_EXEC, THRIFT) supports that metadata operation in question. - Among methods without parameters, the implementation of _getSchemas()_ reuses the parametrised method _getSchemas(String catalog, String schemaPattern)_ in a way that is invalid for SQL_EXEC. Specifically, it passes `null` for both parameters. - This PR makes changes to return an empty result set for _getSchemas()_ in SQL_EXEC. * Remove stale TODO in DatabricksDatabaseMetaData#getProcedures (#493) * [PECO-1779] Combine certificate revocation changes with SSL Truststore (#495) Added certificate revocation changes * Uses string value for null for thrift and sea flow (#496) * uses string value for null for thrift flow * uses string value for null for sea flow * tests * fix test * Add CONTRIBUTING.md to the repo root (#479) * metadata properties default values changed (#497) * Lint converter tests (#489) * Remove static membership for MetricsExporter (#485) * Remove static membership for MetricsExporter * Fixes related to metrics exporter * Fix compile error * Fix retry handler * Nullable column type mismatch (#491) * getPrimaryKeys Columns matched to jdbc-spec * extensive testing for listColumns * added annotations and java-doc for constructors (#504) * added annotations and java-doc for ResultSet and Metadata * Lint changes (#505) * Add logging info in README (#498) * Fix potential sql injection in DatabricksUCVolumeClient (#509) * Remove common-langs dependency (#510) * Remove old metadata client and remove circular reference (#461) - Lint changes - Remove old metadata client and dead code - Added an empty metadata client with appropriate metadata. this will unblock the usage of BI tools running old DBSQL version - Remove circular reference b/w Driver and DatabricksConnection - Update fake service stubs for metadata tests using new sdk client - Remove all-purpose specific metadata constants. Metadata columns are now reused across SQL_EXEC and Thrift clients - Added a URL param `useemptymetadata` to circumvent the usage of BI tools with old DBSQL version * Rename StubMappingCredentialsCleaner to StubMappingRedactor (#508) * Review comment on DatabricksWireMockExtension (#507) * Remove some dead code * Schema column in getSchemas metadata call is not nullable (#515) * benchmark tests added * all purpose cluster mode added to benchmarking * checkout to dev branch * don't merge main * added databricks driver to resources * env vars imported from secrets * bug fixes * checkout to correct branch * Decoupling connection.open from constructor and avoid resource leakage during Driver.connect(..) (#513) * Move session.open out of constructor and avoid resource leakage * Fix close * Cleanup todos * Comment out sync export metrics call * Make logger instances class-private (#512) * [PECO-1795] Do not use thread-local client for fake service tests (#516) * Move EmptyResultSet out of the fake package (#518) * Move EmptyResultSet out of the fake package * Minor fixes to SEA handlers [remake] (#501) * Minor fixes to SEA handlers * Update integration tests * Add getHeaders to delete * Fix test * Update version to 0.9.5-oss and add changelog (#521) * Update version * modify wording * resolve conflicts again * Minor suggestion on DatabricksUCVolumeClient (#528) * Minor suggestion on DatabricksUCVolumeClient * Revert "Lint converter tests (#489)" (#530) This reverts commit 8b812e9. We have substantially modified the converter infra in #478 and reverting this will be convenient in terms of resolving merge conflicts. * Memory allocation improvements to `com.databricks.jdbc.api.impl.converters` (#478) - `com.databricks.jdbc.api.impl.converters` are used to convert a given java object of a particular SQL type to a given java type. These are extensively used in result set APIs. - Currently, to use a converter, we instantiate a new converter object. This leads to unnecessary memory allocation and GC work when reading the result set. Number of converter objects instantiated are proportional to size of the table being read, i.e. rows multiplied by columns! - This PR makes converter classes stateless and purely behavioural. This allows these objects to be singleton and can be reused across the entire runtime, drastically reducing memory allocation and garbage collection. - Memory allocation and GC performance are critical aspects of a library as this directly affects customer's application. - Attaching few screenshots of the improvement. I have used the dogfood table `samples.tpch.lineitem` with 12-15 columns. The screenshots depict the total memory allocated to the function https://github.com/databricks/databricks-jdbc/blob/0779394d719ad42c96e68ac962156e5569a77403/src/main/java/com/databricks/jdbc/api/impl/converters/ConverterHelper.java#L14 - Number of rows: 575000. The `old` keyword in image represents the jar with PR changes.  - Number of rows: 1075000. The `new` keyword in image represents the jar with PR changes.  - Number of rows: 10750000. The `old` keyword in image represents the jar with PR changes.  - Additional changes: - Reducing code duplication in result set and arrow-to-java converter - Address TODOs - Lint changes ## Testing - Unit tests - Fake service integration tests - Performance tests using DriverTest * Lint (#531) * Remove/rephrase final set of TODOs (#511) * [PECO-1952] Add Javadoc to DatabricksUCVolumeClient#listObjects (#533) * Added java docs for the listObjects function * Made java doc descriptive * Fixed formatting * [PECO-1956] Refractor LOGGER.error to have throwable as first arg (#520) * Swapped the parameters in logger.error from string, throwable to throwable, string * Removed unneccessary changes * Added %s within the {} in the String format * Fixed formatting * Removed the commented out LOGGERS * tables created in benchfood for inserting cluster perf results * spotless * [PECO-1959] Prequel for async execution support (#523) * Refactoring IDatabricksStatement and IDatabricksResult interfaces into private ..Handle interfaces and public interfaces * Fix interface definition * Add compression in thrift flow (#499) * added benchmarking workflow file (#541) * added benchmarking workflow file * Address review comments in #503 (#522) * Remove dead telemetry code (#540) * Remove telemetry * Remove todos * [PECO-2005] Logging improvements (#538) * Strip internal files (#545) * Remove simba reference (#546) * changed test path * dev branch testing branch * resolving PR comments. * checkout branch corrected * thrift http path added to github env * renamed env var * minor changes * clubbing sea and thrift compute for simba driver * spotless * use main catalog on benchmark-prod --------- Co-authored-by: Bhuvan Rangoju <[email protected]> Co-authored-by: Vikrant Puppala <[email protected]> Co-authored-by: Agnipratim Nag <[email protected]> Co-authored-by: Jothi Prakash <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: Gopal Lal <[email protected]> Co-authored-by: Madhav Sainanee <[email protected]> Co-authored-by: jayantsing-db <[email protected]> Co-authored-by: Samikshya Chand <[email protected]> Co-authored-by: Alex Guo <[email protected]> Co-authored-by: eric-wang-1990 <[email protected]> Co-authored-by: Jacky Hu <[email protected]> Co-authored-by: Yin Ouyang <[email protected]>
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix log path to make DBeaver Work + fix version of driver in DBeaver
Testing
Manual testing + modified unit tests
Additional Notes to the Reviewer