You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sentry.apache.org by Ke Jia <ke...@intel.com> on 2016/07/01 05:15:18 UTC

Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

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

Review request for sentry, Anne Yu and Dapeng Sun.


Bugs: SENTRY-1334
    https://issues.apache.org/jira/browse/SENTRY-1334


Repository: sentry


Description
-------

test and add test for CTAS and Create View AS SELECT (cross databases cases)


Diffs
-----

  sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java b123dcd 

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


Testing
-------

test done


Thanks,

Ke Jia


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Anne Yu <an...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49491/#review141639
-----------------------------------------------------------


Ship it!




- Anne Yu


On July 11, 2016, 1:26 a.m., Ke Jia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49491/
> -----------------------------------------------------------
> 
> (Updated July 11, 2016, 1:26 a.m.)
> 
> 
> Review request for sentry, Anne Yu and Dapeng Sun.
> 
> 
> Bugs: SENTRY-1334
>     https://issues.apache.org/jira/browse/SENTRY-1334
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> test and add test for CTAS and Create View AS SELECT (cross databases cases)
> 
> 
> Diffs
> -----
> 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java 22d4cf8 
> 
> Diff: https://reviews.apache.org/r/49491/diff/
> 
> 
> Testing
> -------
> 
> test done
> 
> 
> Thanks,
> 
> Ke Jia
> 
>


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Ke Jia <ke...@intel.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49491/
-----------------------------------------------------------

(Updated July 11, 2016, 1:26 a.m.)


Review request for sentry, Anne Yu and Dapeng Sun.


Bugs: SENTRY-1334
    https://issues.apache.org/jira/browse/SENTRY-1334


Repository: sentry


Description
-------

test and add test for CTAS and Create View AS SELECT (cross databases cases)


Diffs (updated)
-----

  sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/dbprovider/TestColumnEndToEnd.java 22d4cf8 

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


Testing
-------

test done


Thanks,

Ke Jia


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Anne Yu <an...@cloudera.com>.

> On July 1, 2016, 5:31 p.m., Anne Yu wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java, line 633
> > <https://reviews.apache.org/r/49491/diff/1/?file=1434660#file1434660line633>
> >
> >     Can you also try to add one test for Create View AS SELECT;
> >     
> >     create table db_1.tb1(int id, string val, int num);
> >     ...
> >     
> >     use db_1;
> >     create view db_1.v1 as select db_1.tb1.id, db_2.tb1.num, db_2.tb2.val from  db_1.tb1, db_2.tb1, db_2.tb2; (the syntax might be incorrect please modify as needed)
> 
> Anne Yu wrote:
>     Can you also insert some data into each of tables and select * from view to assert data are correctly inserted. Can this test case be also run in dbprovider profile on a real cluster?
> 
> Ke Jia wrote:
>     Hi Anne Yu,  Whether the "dbprovider profile" is a profile of maven? Now, I updated the patch, but I don't know how run it in dbprovider profile on a real cluster.

Oh, as long as the test is included into "dbprovider profile" is able to run it. What I meant is ensure it's included into that profile.


- Anne


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


On July 1, 2016, 5:15 a.m., Ke Jia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49491/
> -----------------------------------------------------------
> 
> (Updated July 1, 2016, 5:15 a.m.)
> 
> 
> Review request for sentry, Anne Yu and Dapeng Sun.
> 
> 
> Bugs: SENTRY-1334
>     https://issues.apache.org/jira/browse/SENTRY-1334
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> test and add test for CTAS and Create View AS SELECT (cross databases cases)
> 
> 
> Diffs
> -----
> 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java b123dcd 
> 
> Diff: https://reviews.apache.org/r/49491/diff/
> 
> 
> Testing
> -------
> 
> test done
> 
> 
> Thanks,
> 
> Ke Jia
> 
>


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Anne Yu <an...@cloudera.com>.

> On July 1, 2016, 5:31 p.m., Anne Yu wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java, line 633
> > <https://reviews.apache.org/r/49491/diff/1/?file=1434660#file1434660line633>
> >
> >     Can you also try to add one test for Create View AS SELECT;
> >     
> >     create table db_1.tb1(int id, string val, int num);
> >     ...
> >     
> >     use db_1;
> >     create view db_1.v1 as select db_1.tb1.id, db_2.tb1.num, db_2.tb2.val from  db_1.tb1, db_2.tb1, db_2.tb2; (the syntax might be incorrect please modify as needed)

Can you also insert some data into each of tables and select * from view to assert data are correctly inserted. Can this test case be also run in dbprovider profile on a real cluster?


- Anne


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


On July 1, 2016, 5:15 a.m., Ke Jia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49491/
> -----------------------------------------------------------
> 
> (Updated July 1, 2016, 5:15 a.m.)
> 
> 
> Review request for sentry, Anne Yu and Dapeng Sun.
> 
> 
> Bugs: SENTRY-1334
>     https://issues.apache.org/jira/browse/SENTRY-1334
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> test and add test for CTAS and Create View AS SELECT (cross databases cases)
> 
> 
> Diffs
> -----
> 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java b123dcd 
> 
> Diff: https://reviews.apache.org/r/49491/diff/
> 
> 
> Testing
> -------
> 
> test done
> 
> 
> Thanks,
> 
> Ke Jia
> 
>


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Ke Jia <ke...@intel.com>.

> On July 1, 2016, 5:31 p.m., Anne Yu wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java, line 633
> > <https://reviews.apache.org/r/49491/diff/1/?file=1434660#file1434660line633>
> >
> >     Can you also try to add one test for Create View AS SELECT;
> >     
> >     create table db_1.tb1(int id, string val, int num);
> >     ...
> >     
> >     use db_1;
> >     create view db_1.v1 as select db_1.tb1.id, db_2.tb1.num, db_2.tb2.val from  db_1.tb1, db_2.tb1, db_2.tb2; (the syntax might be incorrect please modify as needed)
> 
> Anne Yu wrote:
>     Can you also insert some data into each of tables and select * from view to assert data are correctly inserted. Can this test case be also run in dbprovider profile on a real cluster?

Hi Anne Yu,  Whether the "dbprovider profile" is a profile of maven? Now, I updated the patch, but I don't know how run it in dbprovider profile on a real cluster.


- Ke


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


On July 1, 2016, 5:15 a.m., Ke Jia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49491/
> -----------------------------------------------------------
> 
> (Updated July 1, 2016, 5:15 a.m.)
> 
> 
> Review request for sentry, Anne Yu and Dapeng Sun.
> 
> 
> Bugs: SENTRY-1334
>     https://issues.apache.org/jira/browse/SENTRY-1334
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> test and add test for CTAS and Create View AS SELECT (cross databases cases)
> 
> 
> Diffs
> -----
> 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java b123dcd 
> 
> Diff: https://reviews.apache.org/r/49491/diff/
> 
> 
> Testing
> -------
> 
> test done
> 
> 
> Thanks,
> 
> Ke Jia
> 
>


Re: Review Request 49491: SENTRY-1334 test and add test for CTAS and Create View AS SELECT (cross databases cases)

Posted by Anne Yu <an...@cloudera.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/49491/#review140387
-----------------------------------------------------------




sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java (line 633)
<https://reviews.apache.org/r/49491/#comment205779>

    Can you also try to add one test for Create View AS SELECT;
    
    create table db_1.tb1(int id, string val, int num);
    ...
    
    use db_1;
    create view db_1.v1 as select db_1.tb1.id, db_2.tb1.num, db_2.tb2.val from  db_1.tb1, db_2.tb1, db_2.tb2; (the syntax might be incorrect please modify as needed)


- Anne Yu


On July 1, 2016, 5:15 a.m., Ke Jia wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/49491/
> -----------------------------------------------------------
> 
> (Updated July 1, 2016, 5:15 a.m.)
> 
> 
> Review request for sentry, Anne Yu and Dapeng Sun.
> 
> 
> Bugs: SENTRY-1334
>     https://issues.apache.org/jira/browse/SENTRY-1334
> 
> 
> Repository: sentry
> 
> 
> Description
> -------
> 
> test and add test for CTAS and Create View AS SELECT (cross databases cases)
> 
> 
> Diffs
> -----
> 
>   sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hive/TestCrossDbOps.java b123dcd 
> 
> Diff: https://reviews.apache.org/r/49491/diff/
> 
> 
> Testing
> -------
> 
> test done
> 
> 
> Thanks,
> 
> Ke Jia
> 
>