You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by Srikanth Sundarrajan <sr...@hotmail.com> on 2016/09/09 11:09:01 UTC

Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/
-----------------------------------------------------------

Review request for lens.


Bugs: LENS-1319
    https://issues.apache.org/jira/browse/LENS-1319


Repository: lens


Description
-------

LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query


Diffs
-----

  lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
  lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
  lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 

Diff: https://reviews.apache.org/r/51756/diff/


Testing
-------

Relevant unit tests added.


Thanks,

Srikanth Sundarrajan


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Puneet Gupta <pu...@gmail.com>.

> On Sept. 13, 2016, 1:06 p.m., Puneet Gupta wrote:
> > lens-client/src/main/java/org/apache/lens/client/LensClient.java, line 120
> > <https://reviews.apache.org/r/51756/diff/1/?file=1494959#file1494959line120>
> >
> >     Just had one thought. Is there a way to keep the number of public methods to a minimum in LensClient and LensStatement. The motivation for this would be have lesser number of execute methods to choose from for end user who sometimes seem to struggle which method to use. I Dont see a direct way of doing that unless we sacrifice backward compatibility.
> 
> Srikanth Sundarrajan wrote:
>     While I understand the concern, it would be much needed to expose the ability to pass the conf, given that the server supports the client to pass conf. Removing the older method without conf, would be backward incompatible, I suggest that we annotate the older methods as @Derprecated and remove them in a subsequent release.
> 
> Srikanth Sundarrajan wrote:
>     Hi Puneet, If the suggested fix is acceptable, can post a revised patch. Thanks

+1


- Puneet


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review148713
-----------------------------------------------------------


On Sept. 9, 2016, 11:09 a.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 9, 2016, 11:09 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Rajat Khandelwal <ra...@gmail.com>.

> On Sept. 13, 2016, 6:36 p.m., Puneet Gupta wrote:
> > lens-client/src/main/java/org/apache/lens/client/LensClient.java, line 120
> > <https://reviews.apache.org/r/51756/diff/1/?file=1494959#file1494959line120>
> >
> >     Just had one thought. Is there a way to keep the number of public methods to a minimum in LensClient and LensStatement. The motivation for this would be have lesser number of execute methods to choose from for end user who sometimes seem to struggle which method to use. I Dont see a direct way of doing that unless we sacrifice backward compatibility.
> 
> Srikanth Sundarrajan wrote:
>     While I understand the concern, it would be much needed to expose the ability to pass the conf, given that the server supports the client to pass conf. Removing the older method without conf, would be backward incompatible, I suggest that we annotate the older methods as @Derprecated and remove them in a subsequent release.
> 
> Srikanth Sundarrajan wrote:
>     Hi Puneet, If the suggested fix is acceptable, can post a revised patch. Thanks
> 
> Puneet Gupta wrote:
>     +1

+1 for the proposed fix.


- Rajat


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review148713
-----------------------------------------------------------


On Sept. 9, 2016, 4:39 p.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 9, 2016, 4:39 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Srikanth Sundarrajan <sr...@hotmail.com>.

> On Sept. 13, 2016, 1:06 p.m., Puneet Gupta wrote:
> > lens-client/src/main/java/org/apache/lens/client/LensClient.java, line 120
> > <https://reviews.apache.org/r/51756/diff/1/?file=1494959#file1494959line120>
> >
> >     Just had one thought. Is there a way to keep the number of public methods to a minimum in LensClient and LensStatement. The motivation for this would be have lesser number of execute methods to choose from for end user who sometimes seem to struggle which method to use. I Dont see a direct way of doing that unless we sacrifice backward compatibility.
> 
> Srikanth Sundarrajan wrote:
>     While I understand the concern, it would be much needed to expose the ability to pass the conf, given that the server supports the client to pass conf. Removing the older method without conf, would be backward incompatible, I suggest that we annotate the older methods as @Derprecated and remove them in a subsequent release.

Hi Puneet, If the suggested fix is acceptable, can post a revised patch. Thanks


- Srikanth


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review148713
-----------------------------------------------------------


On Sept. 9, 2016, 11:09 a.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 9, 2016, 11:09 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Srikanth Sundarrajan <sr...@hotmail.com>.

> On Sept. 13, 2016, 1:06 p.m., Puneet Gupta wrote:
> > lens-client/src/main/java/org/apache/lens/client/LensClient.java, line 120
> > <https://reviews.apache.org/r/51756/diff/1/?file=1494959#file1494959line120>
> >
> >     Just had one thought. Is there a way to keep the number of public methods to a minimum in LensClient and LensStatement. The motivation for this would be have lesser number of execute methods to choose from for end user who sometimes seem to struggle which method to use. I Dont see a direct way of doing that unless we sacrifice backward compatibility.

While I understand the concern, it would be much needed to expose the ability to pass the conf, given that the server supports the client to pass conf. Removing the older method without conf, would be backward incompatible, I suggest that we annotate the older methods as @Derprecated and remove them in a subsequent release.


- Srikanth


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review148713
-----------------------------------------------------------


On Sept. 9, 2016, 11:09 a.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 9, 2016, 11:09 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Puneet Gupta <pu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review148713
-----------------------------------------------------------




lens-client/src/main/java/org/apache/lens/client/LensClient.java (line 120)
<https://reviews.apache.org/r/51756/#comment216215>

    Just had one thought. Is there a way to keep the number of public methods to a minimum in LensClient and LensStatement. The motivation for this would be have lesser number of execute methods to choose from for end user who sometimes seem to struggle which method to use. I Dont see a direct way of doing that unless we sacrifice backward compatibility.


- Puneet Gupta


On Sept. 9, 2016, 11:09 a.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 9, 2016, 11:09 a.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Puneet Gupta <pu...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/#review149013
-----------------------------------------------------------


Ship it!




Ship It!

- Puneet Gupta


On Sept. 14, 2016, 2:55 p.m., Srikanth Sundarrajan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51756/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2016, 2:55 p.m.)
> 
> 
> Review request for lens.
> 
> 
> Bugs: LENS-1319
>     https://issues.apache.org/jira/browse/LENS-1319
> 
> 
> Repository: lens
> 
> 
> Description
> -------
> 
> LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query
> 
> 
> Diffs
> -----
> 
>   lens-cli/src/main/java/org/apache/lens/cli/commands/LensQueryCommands.java 4346c86 
>   lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java e1b19de 
>   lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
>   lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
>   lens-client/src/main/java/org/apache/lens/client/jdbc/LensJdbcStatement.java fb265e5 
>   lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
>   lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java e88ed28 
> 
> Diff: https://reviews.apache.org/r/51756/diff/
> 
> 
> Testing
> -------
> 
> Relevant unit tests added.
> 
> 
> Thanks,
> 
> Srikanth Sundarrajan
> 
>


Re: Review Request 51756: LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query

Posted by Srikanth Sundarrajan <sr...@hotmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51756/
-----------------------------------------------------------

(Updated Sept. 14, 2016, 2:55 p.m.)


Review request for lens.


Changes
-------

Updated the patch to deprecate older methods, also removed direct references to deprecated methods in tests and other parts of the code.


Bugs: LENS-1319
    https://issues.apache.org/jira/browse/LENS-1319


Repository: lens


Description
-------

LENS-1319 Lens Client doesn't provide the option to pass query conf while submitting the query


Diffs (updated)
-----

  lens-cli/src/main/java/org/apache/lens/cli/commands/LensQueryCommands.java 4346c86 
  lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java e1b19de 
  lens-client/src/main/java/org/apache/lens/client/LensClient.java 9a76118 
  lens-client/src/main/java/org/apache/lens/client/LensStatement.java 64c24c7 
  lens-client/src/main/java/org/apache/lens/client/jdbc/LensJdbcStatement.java fb265e5 
  lens-client/src/test/java/org/apache/lens/client/TestLensClient.java 94a788a 
  lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java e88ed28 

Diff: https://reviews.apache.org/r/51756/diff/


Testing
-------

Relevant unit tests added.


Thanks,

Srikanth Sundarrajan