Details
Description
Using a generic type as a QueryEntity value type results in a broken SQL table name:
var ignite = Ignition.Start(TestUtils.GetTestConfiguration()); var cfg = new CacheConfiguration( TestUtils.TestName, new QueryEntity(typeof(int), typeof(GenericTest<string>))); var cache = ignite.GetOrCreateCache<int, GenericTest<string>>(cfg); cache[1] = new GenericTest<string> {Prop = "1"}; var tables = cache.Query(new SqlFieldsQuery("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES")) .Select(x => (string) x.Single()).ToArray();
Resulting table name is 0, CULTURE=NEUTRAL, PUBLICKEYTOKEN=7CEC85D7BEA7798E]].
We should add .NET generics support to org.apache.ignite.internal.processors.query.QueryUtils.typeName.
Attachments
Issue Links
- relates to
-
IGNITE-13588 .NET: Incorrect binary type name is registered for generic query types
- Resolved
- links to