READY: RTS-667 / RTS-796#422
Conversation
…feature to interpolate table name in queries if "{table}" is in query string.
There was a problem hiding this comment.
This is a new feature that I don't necessarily have to include. It eliminates the redundancy of specifying the table name as the first parameter to ts_query() as well as within the query string. However, if the query string is itself a format string, the user must remember to escape the parameter via {{table}} as you can see in the tests.
Looks like these were failing with TS 1.0 and the Python 2.3.0 client, too |
|
@javajolt - really? I'll give that a try. I know they worked at one point with a 1.0 RC. |
There was a problem hiding this comment.
So is this interpolation because of the random table names?
There was a problem hiding this comment.
No, because I have {table} in the query string, but do not use fmt to replace it before passing to ts_query. Within the code for queries, it will check for {table} and, if present, insert the table name.
Note that ts_query takes a table parameter than can be a Table object or a string. Either can provide the name of the table so it is convenient to replace the table name for the user.
See my comment here:
https://github.com/basho/riak-python-client/pull/422/files#r48791174
|
@javajolt TS tests pass this morning with RC7 |
|
👍 6f169a7 |
READY: RTS-667 / RTS-796 Reviewed-by: javajolt
|
@borshop merge |
DESCRIBEtestsCREATE TABLEworks correctly via query method