You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2021/02/01 13:42:00 UTC
[jira] [Commented] (IGNITE-14064) .NET: Incorrect table name when
query type is generic
[ https://issues.apache.org/jira/browse/IGNITE-14064?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276327#comment-17276327 ]
Igor Sapego commented on IGNITE-14064:
--------------------------------------
[~ptupitsyn] overall looks good. See my suggestion in PR.
> .NET: Incorrect table name when query type is generic
> -----------------------------------------------------
>
> Key: IGNITE-14064
> URL: https://issues.apache.org/jira/browse/IGNITE-14064
> Project: Ignite
> Issue Type: Bug
> Components: platforms
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Minor
> Labels: .NET
> Fix For: 2.11
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Using a generic type as a QueryEntity value type results in a broken SQL table name:
> {code}
> 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();
> {code}
> Resulting table name is *0, CULTURE=NEUTRAL, PUBLICKEYTOKEN=7CEC85D7BEA7798E]]*.
> We should add .NET generics support to {{org.apache.ignite.internal.processors.query.QueryUtils.typeName}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)