-
Notifications
You must be signed in to change notification settings - Fork 71
Bug 1990850: Handle property and dependency values of type BLOB in ListBundles. #159
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
Conversation
Per https://www.sqlite.org/datatype3.html#type_affinity: > In order to maximize compatibility between SQLite and other database > engines, and so that the example above will work on SQLite as it > does on other SQL database engines, SQLite supports the concept of > "type affinity" on columns. The type affinity of a column is the > recommended type for data stored in that column. The important idea > here is that the type is recommended, not required. Any column can > still store any type of data. It is just that some columns, given > the choice, will prefer to use one storage class over another. The > preferred storage class for a column is called its "affinity". Even though the properties and dependencies tables are created with column affinity TEXT on both their "type" and "value" columns, SQLite does not require values stored in those columns to have that type. The query backing the registry.ListBundles API recently began using the json_object function from the json1 SQLite extension (https://www.sqlite.org/json1.html#jobj), which does not support arguments of type BLOB. The docs state: > If any argument to json_object() is a BLOB then an error is thrown. But it seems that no error is actually being returned. Instead, the result set it empty. This may be an issue with the SQLite driver? It seems to produce an error in sqlite3's interactive mode. Signed-off-by: Ben Luddy <[email protected]> Upstream-repository: operator-registry Upstream-commit: c2fc1fd45d64401b512969f83011868940d83a59
@benluddy: This pull request references Bugzilla bug 1990850, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benluddy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@benluddy: All pull requests linked via external trackers have merged: Bugzilla bug 1990850 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Camila Macedo <[email protected]> Upstream-repository: api Upstream-commit: dd58de2b37096fb5fcd8b5538cf58cfc811b113a
Signed-off-by: Camila Macedo <[email protected]> Upstream-repository: api Upstream-commit: dd58de2b37096fb5fcd8b5538cf58cfc811b113a
Signed-off-by: Camila Macedo <[email protected]> Upstream-repository: api Upstream-commit: dd58de2b37096fb5fcd8b5538cf58cfc811b113a
Signed-off-by: Camila Macedo <[email protected]> Upstream-repository: api Upstream-commit: dd58de2b37096fb5fcd8b5538cf58cfc811b113a
Per https://www.sqlite.org/datatype3.html#type_affinity:
Even though the properties and dependencies tables are created with
column affinity TEXT on both their "type" and "value" columns, SQLite
does not require values stored in those columns to have that type.
The query backing the registry.ListBundles API recently began using
the json_object function from the json1 SQLite
extension (https://www.sqlite.org/json1.html#jobj), which does not
support arguments of type BLOB. The docs state:
But it seems that no error is actually being returned. Instead, the
result set it empty. This may be an issue with the SQLite driver? It
seems to produce an error in sqlite3's interactive mode.