Dave
2012-07-18 22:10:52 UTC
Hi All
Does anyone know if it’s possible to get a query to run in batch mode if you include a VARCHAR(max) in the select clause from the table with the columnstore index?
create table CSTest (Attrib1 int,Attrib2 int, Attrib3 varchar(max))
create columnstore index csind on CSTest(Attrib1,Attrib2)
SELECT Attrib1,Attrib2,Attrib3
FROM dbo.CSTest
WHERE Attrib1 IN (3,4,6,7)
AND Attrib2 IN (33,55,77,88)
I have tried everything I can think of and can’t seem to get it to work.
with(index=csind)
OPTION(querytraceon 8649)
OPTION(hash Join)
Does anyone know if it’s possible to get a query to run in batch mode if you include a VARCHAR(max) in the select clause from the table with the columnstore index?
create table CSTest (Attrib1 int,Attrib2 int, Attrib3 varchar(max))
create columnstore index csind on CSTest(Attrib1,Attrib2)
SELECT Attrib1,Attrib2,Attrib3
FROM dbo.CSTest
WHERE Attrib1 IN (3,4,6,7)
AND Attrib2 IN (33,55,77,88)
I have tried everything I can think of and can’t seem to get it to work.
with(index=csind)
OPTION(querytraceon 8649)
OPTION(hash Join)