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: cds.Vector support for the HANAService #442

Merged
merged 7 commits into from
Feb 28, 2024
Merged

feat: cds.Vector support for the HANAService #442

merged 7 commits into from
Feb 28, 2024

Conversation

BobdenOs
Copy link
Contributor

@BobdenOs BobdenOs commented Feb 5, 2024

No description provided.

@BobdenOs BobdenOs requested a review from David-Kunz February 6, 2024 11:50
@@ -908,6 +909,7 @@ class HANAService extends SQLService {
// Not encoded string with CESU-8 or some UTF-8 except a surrogate pair at "base64_decode" function
Binary: e => `HEXTOBIN(${e})`,
Boolean: e => `CASE WHEN ${e} = 'true' THEN TRUE WHEN ${e} = 'false' THEN FALSE END`,
Vector: e => `TO_REAL_VECTOR(${e})`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might also send the binary variant over the wire (less bytes), but I'm fine to just use TO_REAL_VECTOR for now.

@David-Kunz
Copy link
Contributor

Hi @BobdenOs ,

Did you also do it for the old HANA driver? I think that's what people are waiting for most.

hana/lib/HANAService.js Outdated Show resolved Hide resolved
@David-Kunz
Copy link
Contributor

Hi @BobdenOs ,

Can we merge this for our colleagues to test?

BobdenOs and others added 3 commits February 23, 2024 11:44
Co-authored-by: Dr. David A. Kunz <david.kunz@sap.com>
Co-authored-by: Dr. David A. Kunz <david.kunz@sap.com>
@BobdenOs BobdenOs marked this pull request as ready for review February 23, 2024 10:44
@BobdenOs BobdenOs enabled auto-merge (squash) February 23, 2024 10:44
@BobdenOs BobdenOs merged commit 1057a13 into main Feb 28, 2024
4 checks passed
@BobdenOs BobdenOs deleted the cds-vector branch February 28, 2024 08:44
@cap-bots cap-bots mentioned this pull request Feb 27, 2024
johannes-vogel pushed a commit that referenced this pull request Feb 28, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>db-service: 1.6.4</summary>

##
[1.6.4](db-service-v1.6.3...db-service-v1.6.4)
(2024-02-28)


### Fixed

* **`cqn2sql`:** smart quoting also for update statements
([#475](#475))
([1688f77](1688f77))
* `INSERT` with first `undefined` value
([#484](#484))
([c21e3c4](c21e3c4))
* Allow SELECT.join queries again with full infer call
([#469](#469))
([5329ec0](5329ec0))
* optimize foreign key access in a join relevant path
([#481](#481))
([5e30de4](5e30de4)),
closes [#479](#479)
</details>

<details><summary>hana: 0.0.6</summary>

##
[0.0.6](hana-v0.0.5...hana-v0.0.6)
(2024-02-28)


### Added

* cds.Vector support for the HANAService
([#442](#442))
([1057a13](1057a13))


### Fixed

* `TypeError` for `cds bind` in MTX scenario
([#482](#482))
([38722fe](38722fe))
* Allow SELECT.join queries again with full infer call
([#469](#469))
([5329ec0](5329ec0))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants