Repository navigation
Added OVERWRITE feature for UC Volume putObject - #325
Merged
Merged
Conversation
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:18 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:18 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:18 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:18 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:19 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:19 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:21 — with
GitHub Actions
Inactive
agnipratimnag-db
temporarily deployed
to
azure-prod
July 11, 2024 08:21 — with
GitHub Actions
Inactive
gopalldb
approved these changes
Jul 11, 2024
|
|
||
| private String createPutObjectQuery( | ||
| String catalog, String schema, String volume, String objectPath, String localPath) { | ||
| String catalog, |
Collaborator
There was a problem hiding this comment.
You are copying the same code here. You can use a hard coded query here, and that would ensure that expected query is same as hard coded query.
Contributor
Author
There was a problem hiding this comment.
got it. will remove query builder use and use hardcoded queries in UTs in a different PR.
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]>
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
Added a boolean parameter to overwrite existing objects and added UT + IT for the same