How to get the constraintargs list as set for a WHERE IN (list) clause? #428
-
I'm using Beto de Alemeida's shillelagh in order to proxy SQL statements from Superset to a REST API service. I'm not sure what's going on, but whenever I use a multi-select filter on Superset, the SQL statement correctly states to SELECT * from X WHERE Y IN ('s1','s2'). According to the documentation this list of strings should be passed as a set(['s1','s2') in the constraintargs of the VTCursor Filter, but I get these in as None. Is there a setting that I overlooked that triggers the use of the set() for the constraintargs. If I don't get this set() in then I cannot pass it along on the API and apsw does the filtering on a row by row basis. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You do have to call IndexInfo.set_aConstraintUsage_in on the corresponding constraint in BestIndexObject to get the set. |
Beta Was this translation helpful? Give feedback.
You do have to call IndexInfo.set_aConstraintUsage_in on the corresponding constraint in BestIndexObject to get the set.