Skip to content
New issue

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

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

Already on GitHub? # to your account

Use name hint when server is not providing custom scalar type name #461

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

fantix
Copy link
Member

@fantix fantix commented Sep 22, 2023

Like mentioned in #457, this is probably a server bug. When fixed, the test assertion in this PR shall be updated (instead of

Input = typing.Sequence[float]

we should probably have:

V3 = typing.Sequence[float]

for query:

create scalar type v3 extending ext::pgvector::vector<3>;
select 42 filter exists <optional v3>$input;

).

Ah, this bug is already fixed in EdgeDB 4.0 - now I'll have to fix the assertions. The test is now fixed.

Fixes #457

@fantix fantix requested a review from elprans September 22, 2023 21:09
@edgedb-cla
Copy link

edgedb-cla bot commented Sep 22, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

@fantix

This comment was marked as resolved.

fantix added a commit that referenced this pull request Sep 22, 2023
)

Co-authored-by: Arun Aruljothi <arun@arunaruljothi.com>
@fantix fantix merged commit 718f86d into master Sep 22, 2023
@fantix fantix deleted the scalar-name-hint branch September 22, 2023 22:23
fantix added a commit that referenced this pull request Sep 22, 2023
)

Co-authored-by: Arun Aruljothi <arun@arunaruljothi.com>
fantix added a commit that referenced this pull request Sep 22, 2023
)

Co-authored-by: Arun Aruljothi <arun@arunaruljothi.com>
fantix added a commit that referenced this pull request Sep 22, 2023
Changes
=======

* Add an fts::language type that is encoded as text (#417)
  (by @msullivan in 9e7d2d2 for #417)

* Drop support of Python 3.7 (#435)
  (by @fantix in 758a391 for #435)

Fixes
=====

* Fix codegen for pgvector (#447)
  (by @fantix in 7aa58bd for #447)

* Use name hint when server is not providing custom scalar type name (#461)
  (by @arunaruljothi in 6c6225e for #457)
fantix added a commit that referenced this pull request Sep 22, 2023
Changes
=======

* Add an fts::language type that is encoded as text (#417)
  (by @msullivan in 9e7d2d2 for #417)

* Drop support of Python 3.7 (#435)
  (by @fantix in 758a391 for #435)

Fixes
=====

* Fix codegen for pgvector (#447)
  (by @fantix in 7aa58bd for #446)

* Use name hint when server is not providing custom scalar type name (#461)
  (by @arunaruljothi in 6c6225e for #457)
@fantix fantix mentioned this pull request Sep 22, 2023
fantix added a commit that referenced this pull request Sep 22, 2023
Changes
=======

* Add an fts::language type that is encoded as text (#417)
  (by @msullivan in 9e7d2d2 for #417)

* Drop support of Python 3.7 (#435)
  (by @fantix in 758a391 for #435)

Fixes
=====

* Fix codegen for pgvector (#447)
  (by @fantix in 7aa58bd for #446)

* Use name hint when server is not providing custom scalar type name (#461)
  (by @arunaruljothi in 6c6225e for #457)
@aljazerzen aljazerzen mentioned this pull request Feb 23, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pgvector generation failing due to None name
3 participants