ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siva <siva.ka...@bizruntime.com>
Subject Re: How to get the column names(or fieldsNames) of existing ignite sql table
Date Tue, 20 Nov 2018 06:41:43 GMT
Hi ,

*And for question 2, I think, yes, from my learning, SQL Create Table always
create another cache with default naming like SQL_PUBLIC_
. But according to manual, you can override the name by supplying options
after "with".*


But For execute a query we should have Ignitecache object which is from
cacheconfiguration,so that in cache confiuration we should mention
*cacheName * 

 IgniteCache cache = ignite.getOrCreateCache(new 
CacheConfiguration<>().setSqlSchema("PUBLIC").setName(cacheName)); 

so if i give same cacheName in cache configuration and in "With" Cluse 
,getting exception like same cache alredy created .

Where i was missed?







--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message