-
Notifications
You must be signed in to change notification settings - Fork 62
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
Support with_hint
for tables
#150
Comments
Hello @c-thiel The with_hint() method is used to add query hints (such as index hints), but in this case, the FOR SYSTEM_TIME clause is a special clause for temporal tables in IBM Db2, and it's not recognized by with_hint() in the same way regular query hints (e.g., index hints) are. As a workaround, you can manually construct the query with the FOR SYSTEM_TIME clause, You can use the text() function to construct and execute your query.
Also, you can try the below approach
I have tried giving index in with_hint(), see below code snippet
Please try the approach mentioned above and let me know if you're encountering any issues or if I might be missing something in my explanation. Thank you! |
with_hint
currently seems to be not supported.The following snippet raises an assertion error:
Is there any known workaround or plan to implement it?
The text was updated successfully, but these errors were encountered: