Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add PG OID support #2736

Merged
merged 53 commits into from
Apr 5, 2024
Merged

feat: add PG OID support #2736

merged 53 commits into from
Apr 5, 2024

Commits on Dec 29, 2023

  1. feat: add PG OID support

    tlhquynh committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    6b3f572 View commit details
    Browse the repository at this point in the history
  2. chore: fix lint errors

    tlhquynh committed Dec 29, 2023
    Configuration menu
    Copy the full SHA
    929abf4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e7ea9d View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    0489d9a View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Configuration menu
    Copy the full SHA
    e5a39c5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    537de96 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    f9ea807 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. chore: keep session pool ordering when pinging (googleapis#2695)

    * chore: keep session pool ordering when pinging
    
    Pinging sessions would move the sessions that were pinged to either the
    front or the back of the pool (dependingin the session pool
    configuration), instead of keeping the sessions in the place where they
    were when being pinged. Bringing a session that is pinged to the front
    of the pool means that we will prefer using a session that has not
    really been used for a while, other than for the ping. Keeping the
    sessions in place is therefore preferable.
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    4cb354a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e505b9e View commit details
    Browse the repository at this point in the history
  3. feat: allow attempt direct path xds via env var (googleapis#2950)

    To enable Direct Access, [both `setAttemptDirectPath` and `setAttemptDirectPathXds` should be called](https://togithub.com/googleapis/sdk-platform-java/blob/4b44a7851dc1d4fd2ac21a54df6c24db5625223c/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java#L373-L386) for gax to append the correct google-c2p scheme.
    
    This PR adds a env var `GOOGLE_SPANNER_ENABLE_DIRECT_ACCESS` to control the enable/disable of Direct Access. When it is true, it calls `setAttemptDirectPathXds` which effectively turns on Direct Access (as `options.isAttemptDirectPath` is by default true and we don't need to call `setAttemptDirectPath` again).
    HailongWen authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    0184554 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1d756a3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f6193f9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    aed1223 View commit details
    Browse the repository at this point in the history
  7. refactor: move skip methods to abstract parser (googleapis#2948)

    Move the PostgreSQL skip methods from the PostgreSQL parser to the
    abstract parser. This is step 1 in refactoring the GoogleSQL and
    PostgreSQL parser so they can share more code. The eventual goal is to
    allow the GoogleSQL parser to be able to handle SQL string without
    having to remove the comments from the string first.
    olavloite authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    bf2361b View commit details
    Browse the repository at this point in the history
  8. fix: return type of max commit delay option. (googleapis#2953)

    * Use `TransactionOption` as return type instead of `TransactionOption`
    arpan14 authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    57edce9 View commit details
    Browse the repository at this point in the history
  9. refactor: generalize skip methods (googleapis#2949)

    Generalize the various skip methods so these can be used for both dialects. Each dialect implements a number of abstract methods to indicate what type of statements and constructs they support. These methods are used by the generalized skip methods to determine the start and end of literals, identifiers, and comments.
    
    This is step 2 of the refactor that is needed to share more of the code between the SpannerStatementParser and PostgreSQLStatementParser.
    olavloite authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    d7ba42b View commit details
    Browse the repository at this point in the history
  10. perf: keep comments when searching for params (googleapis#2951)

    Keep all comments in the SQL string in place when converting positional parameters to named parameters. This reduces the amount of string operations that are needed for each query that is executed, and also enables actually sending comments from the client to Spanner when using positional parameters (e.g. in JDBC).
    
    This is step 3 in the refactoring to share more code between the SpannerStatementParser and PostgreSQLStatementParser.
    olavloite authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    50e2887 View commit details
    Browse the repository at this point in the history
  11. chore: randomize session pool order based on TPS (googleapis#2792)

    * chore: randomize session pool order based on TPS
    
    * chore: remove unnecessary changes
    olavloite authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    6258293 View commit details
    Browse the repository at this point in the history
  12. chore(main): release 6.62.0 (googleapis#2940)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    d94922f View commit details
    Browse the repository at this point in the history
  13. chore(main): release 6.62.1-SNAPSHOT (googleapis#2957)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ### Updating meta-information for bleeding-edge SNAPSHOT release.
    
    ---
    This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
    release-please[bot] authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    bd82e0c View commit details
    Browse the repository at this point in the history
  14. chore(deps): update dependency com.google.cloud:google-cloud-spanner …

    …to v6.62.0 (googleapis#2958)
    
    * chore(deps): update dependency com.google.cloud:google-cloud-spanner to v6.62.0
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    a0a2e8d View commit details
    Browse the repository at this point in the history
  15. chore: add session pool options for multiplexed session. (googleapis#…

    …2960)
    
    * fix: prevent illegal negative timeout values into thread sleep() method while retrying exceptions in unit tests.
    
    * For details on issue see - googleapis#2206
    
    * Fixing lint issues.
    
    * chore: add session pool options for multiplexed session.
    
    * Update google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java
    
    Co-authored-by: Knut Olav Løite <koloite@gmail.com>
    
    * Update google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java
    
    Co-authored-by: Knut Olav Løite <koloite@gmail.com>
    
    * fix: comments.
    
    * chore: lint fix.
    
    ---------
    
    Co-authored-by: Knut Olav Løite <koloite@gmail.com>
    2 people authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    eaa05da View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    8e4ee03 View commit details
    Browse the repository at this point in the history
  17. chore: add new members in SessionImpl for multiplexed session. Add a … (

    googleapis#2961)
    
    * chore: add new members in SessionImpl for multiplexed session. Add a new method to create multiplexed session.
    
    * chore: add unit tests.
    
    * Update google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionClient.java
    
    Co-authored-by: Knut Olav Løite <koloite@gmail.com>
    
    * fix: comments.
    
    * chore: prefer junit assertions.
    
    * chore: change to default method in SpannerRpc interface.
    
    ---------
    
    Co-authored-by: Knut Olav Løite <koloite@gmail.com>
    2 people authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ebf8723 View commit details
    Browse the repository at this point in the history
  18. Update .gitignore to remove IDE specific files and remove unnecessary…

    … entries from CLIRR ignores
    tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    358e8d3 View commit details
    Browse the repository at this point in the history
  19. Remove PG.OID external getters.

    User should use Long/LongArray/LongList getters instead to get PgOid/PgOidArray/PgOidList columns.
    tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    1e99310 View commit details
    Browse the repository at this point in the history
  20. chore: generalise session pool class for multiplexed session. (google…

    …apis#2964)
    
    * chore: generalise session pool class for multiplexed session.
    
    * chore: add back previous code.
    
    * chore: address comments.
    arpan14 authored and tlhquynh committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    039079e View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Configuration menu
    Copy the full SHA
    b21e262 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Configuration menu
    Copy the full SHA
    6f971a7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5df12ca View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. chore: add multiplexed session implementations for CachedSession/Sess…

    …ionFuture interfaces. (googleapis#2973)
    
    * chore: add multiplexed session implementations for CachedSession/SessionFuture  interfaces.
    
    * chore: add comments.
    
    * chore: add session replacement handler for multiplexed session.
    
    * chore: address comments.
    
    * chore: fix comments.
    
    * chore: fix comments.
    arpan14 authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    4b12761 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60712bd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19fbdfb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3f6113 View commit details
    Browse the repository at this point in the history
  5. chore(main): release 6.62.2-SNAPSHOT (googleapis#2983)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ### Updating meta-information for bleeding-edge SNAPSHOT release.
    
    ---
    This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
    release-please[bot] authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    8ac2a16 View commit details
    Browse the repository at this point in the history
  6. feat: add support for transaction-level exclusion from change streams (

    …googleapis#2959)
    
    * Add support for transaction-level exclusion from change streams
    
    * cleanup
    
    * refactor: introduce PartitionedUpdateOption
    
    * Revert "refactor: introduce PartitionedUpdateOption"
    
    This reverts commit 96b508b.
    
    * Add error handling in DML update APIs where excludeTxnFromChangeStreams option is not applicable
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    231273e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    80ade2e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    ecb87e7 View commit details
    Browse the repository at this point in the history
  9. deps: update dependency com.google.cloud:google-cloud-monitoring to v…

    …3.40.0 (googleapis#2987)
    
    * deps: update dependency com.google.cloud:google-cloud-monitoring to v3.40.0
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    7444b29 View commit details
    Browse the repository at this point in the history
  10. chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    …35.0 (googleapis#2989)
    
    * chore(deps): update dependency com.google.cloud:libraries-bom to v26.35.0
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    8a9584b View commit details
    Browse the repository at this point in the history
  11. chore(main): release 6.63.0 (googleapis#2985)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    f103f18 View commit details
    Browse the repository at this point in the history
  12. chore(main): release 6.63.1-SNAPSHOT (googleapis#2991)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ### Updating meta-information for bleeding-edge SNAPSHOT release.
    
    ---
    This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
    release-please[bot] authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    a8531fd View commit details
    Browse the repository at this point in the history
  13. chore: clean up some warnings and malformed comments (googleapis#2977)

    * chore: clean up some warnings and malformed comments
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    e74319c View commit details
    Browse the repository at this point in the history
  14. chore(deps): update dependency com.google.cloud:google-cloud-spanner …

    …to v6.63.0 (googleapis#2992)
    
    * chore(deps): update dependency com.google.cloud:google-cloud-spanner to v6.63.0
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    248744b View commit details
    Browse the repository at this point in the history
  15. feat: add endpoint connection URL property (googleapis#2969)

    Adds an 'endpoint' connection URL property for the Connection API.
    This property can be used instead of adding the endpoint to the host
    group part of the Connection URL, which again removes the need to
    actually change the connection URL when connecting to for example
    the emulator from the JDBC driver. The latter can instead just add
    the endpoint to the Properties set that is given to the JDBC driver.
    olavloite authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    629fb32 View commit details
    Browse the repository at this point in the history
  16. feat: support max_commit_delay in Connection API (googleapis#2954)

    * feat: support max_commit_delay in Connection API
    
    Adds support for max_commit_delay to the Connection API:
    1. Adds a setMaxCommitDelay(Duration) method to Connection
    2. Adds a maxCommitDelay connection URL property
    3. Adds a SET MAX_COMMIT_DELAY=<duration> SQL statement
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    b72581c View commit details
    Browse the repository at this point in the history
  17. chore: minor improvements to default benchmarks. (googleapis#2993)

    * chore: minor improvements to default benchmarks.
    
    * chore: lint issues fix.
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d05695b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    417a83c View commit details
    Browse the repository at this point in the history
  19. chore: add regex to match unmanaged dependency check (googleapis#1941) (

    googleapis#2971)
    
    Source-Link: googleapis/synthtool@ca7a716
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:cecae6152a85d55c932a64515643cf2e32a1f1b6e17503080eb07744b2177f28
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    2d6f4f3 View commit details
    Browse the repository at this point in the history
  20. feat: Add SessionPoolOptions, SpannerOptions protos in executor protos (

    googleapis#2932)
    
    * feat: Add instance partition support to spanner instance proto
    
    PiperOrigin-RevId: 611127452
    
    Source-Link: googleapis/googleapis@618d47c
    
    Source-Link: googleapis/googleapis-gen@92d8555
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTJkODU1NTg4ODI4NDMwZThiNDI4ZWQ3ODIxOWUyM2VlNjY2ZGE3OCJ9
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * fix(deps): Update the Java code generator (gapic-generator-java) to 2.37.0
    
    PiperOrigin-RevId: 611816371
    
    Source-Link: googleapis/googleapis@2a40f63
    
    Source-Link: googleapis/googleapis-gen@d30ff07
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDMwZmYwNzY3Nzc3YjM4MWZiMTYxN2Y2N2E5MGUzYWJkM2JkYzZkYyJ9
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    * feat: Add SessionPoolOptions, SpannerOptions protos in executor protos
    
    PiperOrigin-RevId: 621265883
    
    Source-Link: googleapis/googleapis@fed9845
    
    Source-Link: googleapis/googleapis-gen@c66a769
    Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzY2YTc2OTU3ZTJlMTYzNDdiYzFkZDNmNGM2MzgyMjNmMDY1ZWU4MCJ9
    
    * 🦉 Updates from OwlBot post-processor
    
    See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
    
    ---------
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    2 people authored and tlhquynh committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    d2b4862 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    b8074b5 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    cdd1c91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b63740d View commit details
    Browse the repository at this point in the history