[jira] [Commented] (IGNITE-3325) .NET: Improve CompiledQuery in LINQ provider
[ https://issues.apache.org/jira/browse/IGNITE-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15432637#comment-15432637 ] Pavel Tupitsyn commented on IGNITE-3325: Merged to master. > .NET: Improve CompiledQuery in LINQ provider > > > Key: IGNITE-3325 > URL: https://issues.apache.org/jira/browse/IGNITE-3325 > Project: Ignite > Issue Type: Bug > Components: community, platforms >Affects Versions: 1.6 >Reporter: Pavel Tupitsyn >Assignee: Pavel Tupitsyn > Labels: .net > Fix For: 1.8 > > > User reported that the following code fails with "Error compiling query: all > compiled query arguments should come from enclosing delegate parameters." > {code} > Func>> qry = > CompiledQuery.Compile((int x, int y,int z) => > orderCache.AsCacheQueryable().Where(e => e.Value.OrderId % x == z).Take(y)); > {code} > Other limitations are: > * Embedded parameters are not supported > * Maximum number of parameters is 8 > We should provide additional additional method to compile a delegate which > takes an array of args. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (IGNITE-3325) .NET: Improve CompiledQuery in LINQ provider
[ https://issues.apache.org/jira/browse/IGNITE-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15432624#comment-15432624 ] ASF GitHub Bot commented on IGNITE-3325: Github user ptupitsyn closed the pull request at: https://github.com/apache/ignite/pull/958 > .NET: Improve CompiledQuery in LINQ provider > > > Key: IGNITE-3325 > URL: https://issues.apache.org/jira/browse/IGNITE-3325 > Project: Ignite > Issue Type: Bug > Components: community, platforms >Affects Versions: 1.6 >Reporter: Pavel Tupitsyn >Assignee: Pavel Tupitsyn > Labels: .net > Fix For: 1.8 > > > User reported that the following code fails with "Error compiling query: all > compiled query arguments should come from enclosing delegate parameters." > {code} > Func>> qry = > CompiledQuery.Compile((int x, int y,int z) => > orderCache.AsCacheQueryable().Where(e => e.Value.OrderId % x == z).Take(y)); > {code} > Other limitations are: > * Embedded parameters are not supported > * Maximum number of parameters is 8 > We should provide additional additional method to compile a delegate which > takes an array of args. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (IGNITE-3325) .NET: Improve CompiledQuery in LINQ provider
[ https://issues.apache.org/jira/browse/IGNITE-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15432619#comment-15432619 ] Pavel Tupitsyn commented on IGNITE-3325: There is a ticket to remove all deprecated code: IGNITE-3539 > .NET: Improve CompiledQuery in LINQ provider > > > Key: IGNITE-3325 > URL: https://issues.apache.org/jira/browse/IGNITE-3325 > Project: Ignite > Issue Type: Bug > Components: community, platforms >Affects Versions: 1.6 >Reporter: Pavel Tupitsyn >Assignee: Pavel Tupitsyn > Labels: .net > Fix For: 1.8 > > > User reported that the following code fails with "Error compiling query: all > compiled query arguments should come from enclosing delegate parameters." > {code} > Func>> qry = > CompiledQuery.Compile((int x, int y,int z) => > orderCache.AsCacheQueryable().Where(e => e.Value.OrderId % x == z).Take(y)); > {code} > Other limitations are: > * Embedded parameters are not supported > * Maximum number of parameters is 8 > We should provide additional additional method to compile a delegate which > takes an array of args. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (IGNITE-3325) .NET: Improve CompiledQuery in LINQ provider
[ https://issues.apache.org/jira/browse/IGNITE-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15421124#comment-15421124 ] ASF GitHub Bot commented on IGNITE-3325: GitHub user ptupitsyn opened a pull request: https://github.com/apache/ignite/pull/958 IGNITE-3325 .NET: Improve CompiledQuery in LINQ provider You can merge this pull request into a Git repository by running: $ git pull https://github.com/ptupitsyn/ignite ignite-3325-1.6.5 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/ignite/pull/958.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #958 commit 1d0cbb45cd61c5c8e6ec926d7e629eb94111b32f Author: vd-pyatkovDate: 2016-08-11T05:43:50Z IGNITE-3618: Client can not load data after server restarts. This closes #941. commit 1139a9f76b5d37073261d729a15b1fbec674d48d Author: vozerov-gridgain Date: 2016-08-11T05:47:48Z Added missing license. commit 0b4ffdbcce63e5ce53572f71af967cff300d5670 Author: vozerov-gridgain Date: 2016-08-14T15:18:40Z IGNITE-2852: Fixed TreeMap and TreeSet serialization. commit 89bce0fc5cb3dba56626c7088e607d0b25c3353c Author: vozerov-gridgain Date: 2016-06-30T10:14:16Z IGNITE-3021: IGFS: Fixed failiing IgfsStreamsSelfTest.testCreateFileColocated() test. Failure as caused by misconfiguration. commit 78aa065b4c7b05381b1fa31159b74969ec4a2bfe Author: vozerov-gridgain Date: 2016-07-21T10:15:35Z IGNITE-826: Removed HadoopHashMapSelfTest.testAllocation() as it tested nothing. commit f87ca482420fc1e6ffcb000a227717142d24e270 Author: vozerov-gridgain Date: 2016-07-21T10:15:41Z IGNITE-826: Removed HadoopHashMapSelfTest.testAllocation() as it tested nothing. commit 9ddf9d846f52a4e8fc433643409993884c70ce37 Author: vozerov-gridgain Date: 2016-07-21T13:00:45Z IGNITE-466: IGFS: Added "IgfsMode mode(IgfsPath)" method. commit dc81069ba9ebb88bc11cf6917e8733cc1f6de2fb Author: Ivan Veselovskiy Date: 2016-08-02T08:11:24Z IGNITE-3343: IGFS: Secondary file system is not queried for statuses during MKDIRS and CREATE operations. This closes #896. commit ae54e36f27719f46d1d276f62a977c3f8d053b44 Author: tledkov-gridgain Date: 2016-08-04T14:04:41Z IGNITE-3331 IGFS: Route client tasks to primary node when metadata co-location is enabled. This closes #921. commit 970137b1db7dc6c5e546581e22e428ae15c86513 Author: vozerov-gridgain Date: 2016-08-05T12:05:32Z IGNITE-3631: IGFS: Now metadata co-location is used for PARTITIONED cache as well. commit 4d876a7560060c892908da447178e97bfe12ca9c Author: vozerov-gridgain Date: 2016-08-05T12:05:43Z IGNITE-3631: IGFS: Now metadata co-location is used for PARTITIONED cache as well. commit f5a040a01280c654df1fc4789cc39ff1ac2d32a4 Author: tledkov-gridgain Date: 2016-08-09T07:01:56Z IGNITE-3332: IGFS: Optimized file unlock routine with help of a client callable. This closes #916. commit 5cf3bea32a25ccc78641f083aa7f1ac81b4187ba Author: vozerov-gridgain Date: 2016-08-15T10:40:41Z IGNITE-1926: IGFS: Implemented local secondary file system. commit 278633eced6d8039b5be4a18eefe6c65650aba4f Author: Yakov Zhdanov Date: 2016-08-15T11:27:22Z IGNITE-3688: Fixed visiblity issue in GridCacheIoManager.idxClsHandlers. commit 5a01c5b459f3004901cb07991c943574978b2bb7 Author: Pavel Tupitsyn Date: 2016-08-15T15:11:11Z IGNITE-3325 .NET: Improve CompiledQuery in LINQ provider commit e0cf561b34f32016e153e7fa1c0bc1d4ec56a976 Author: Pavel Tupitsyn Date: 2016-08-15T15:15:02Z Fix merge > .NET: Improve CompiledQuery in LINQ provider > > > Key: IGNITE-3325 > URL: https://issues.apache.org/jira/browse/IGNITE-3325 > Project: Ignite > Issue Type: Bug > Components: community, platforms >Affects Versions: 1.6 >Reporter: Pavel Tupitsyn >Assignee: Pavel Tupitsyn > Labels: .net > Fix For: 1.8 > > > User reported that the following code fails with "Error compiling query: all > compiled query arguments should come from enclosing delegate parameters." > {code} > Func >> qry = > CompiledQuery.Compile((int x, int y,int z) => > orderCache.AsCacheQueryable().Where(e => e.Value.OrderId % x == z).Take(y)); > {code} > Other
[jira] [Commented] (IGNITE-3325) .NET: Improve CompiledQuery in LINQ provider
[ https://issues.apache.org/jira/browse/IGNITE-3325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15417091#comment-15417091 ] Pavel Tupitsyn commented on IGNITE-3325: * CompiledQuery class deprecated * CompiledQuery2 class added with all the same methods, but taking Expression instead of raw Func<>. For most use cases the transition will not require code changes. ** Fixes Skip/Take and similar issues ** Allows embedded arguments (specify constant literals directly, e.g. .Where(x < 5)) ** Allows using the same argument multiple times * Compile(IQueryable query) overload added ** Allows any number of arguments ** Allows compiling existing queries (no requirement to provide an expression) ** Allows "query builder" pattern where LINQ expression is constructed step by step > .NET: Improve CompiledQuery in LINQ provider > > > Key: IGNITE-3325 > URL: https://issues.apache.org/jira/browse/IGNITE-3325 > Project: Ignite > Issue Type: Bug > Components: community, platforms >Affects Versions: 1.6 >Reporter: Pavel Tupitsyn >Assignee: Pavel Tupitsyn > Labels: .net > Fix For: 1.8 > > > User reported that the following code fails with "Error compiling query: all > compiled query arguments should come from enclosing delegate parameters." > {code} > Func>> qry = > CompiledQuery.Compile((int x, int y,int z) => > orderCache.AsCacheQueryable().Where(e => e.Value.OrderId % x == z).Take(y)); > {code} > Other limitations are: > * Embedded parameters are not supported > * Maximum number of parameters is 8 > We should provide additional additional method to compile a delegate which > takes an array of args. -- This message was sent by Atlassian JIRA (v6.3.4#6332)