Skip to content

Conversation

@aperepel
Copy link
Contributor

@aperepel aperepel commented Oct 1, 2024

Fixed a bug where using both k and pre_filter search_kwargs caused in valid SQL generation.

The broken SQL had LIMIT <whatever_field> generated instead of using k. Moving away from position args fixed things.

Fixed a bug where using both k and pre_filter search_kwargs caused in valid SQL generation.
@aperepel aperepel requested review from a team as code owners October 1, 2024 23:01
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/langchain-google-spanner-python API. label Oct 1, 2024
@averikitsch
Copy link
Collaborator

/gcbrun

Copy link
Collaborator

@averikitsch averikitsch left a comment

Choose a reason for hiding this comment

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

Could you add a test case to illustrate the initial problem? The lint also needs to be fixed

@averikitsch
Copy link
Collaborator

/gcbrun

@gauravpurohit06
Copy link
Contributor

@aperepel, Can you please rebase the branch and fix the lint issues ?

@gauravpurohit06 gauravpurohit06 changed the title Use named arguments instead of positional refactor: Use named arguments instead of positional Oct 14, 2024
@gauravpurohit06
Copy link
Contributor

Updating the title to fix the conventionalcommits format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/langchain-google-spanner-python API.

4 participants