Hi Hemambara, I rewrote my example in form of a junit test [1]. And I suppose that it should pass to make the feature useful. Could please check it and tell me if my understanding is wrong. I tried this test with proposed fix and without it. Result was the same.
[1] https://gist.githubusercontent.com/pavlukhin/3ac27c2def1731a5158222a0d542dfa6/raw/0fd0b0ee7d51649c8b79d36358ce5a80940254b8/NestedFieldUnitTest.java ср, 23 окт. 2019 г. в 23:36, Hemambara <[email protected]>: > > HI Ivan, thanks for the quick reply. > > Yes it perfectly works as needed with the fix. > > Person.Address.Street will not work because > person.getPerson().getAddress().getStreet() does not exist. It has to be > person.getAddress().getStreet(). So column name should be "Address.street" > > Any other name does the trick as long as there is alias option provided in > SQL, but in SQLFieldQuery I cannot provide alias option so the only option > that we are left with is use field name as alias name by default. That way > we will be able to rejoin the node. > > Also just creating field name as "street" will not work as with the same > name there could be another column > > Ex: Person.Address.Street and Person.College.Address.Street. If we use > street here then which street we we are referring to ? This fix will take > the whole name and use it query to avoid complete ambiguity > > > Please follow the instructions that I have mentioned in my previous email. > If you execute those two programs with and with out fix, you can get better > idea. > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ -- Best regards, Ivan Pavlukhin
