asolimando commented on a change in pull request #2685:
URL: https://github.com/apache/hive/pull/2685#discussion_r727233400



##########
File path: ql/src/test/queries/clientpositive/external_jdbc_join_mv.q
##########
@@ -0,0 +1,60 @@
+set hive.support.concurrency=true;
+set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
+
+CREATE TEMPORARY FUNCTION dboutput AS 
'org.apache.hadoop.hive.contrib.genericudf.example.GenericUDFDBOutput';
+
+SELECT
+dboutput ( 
'jdbc:derby:;databaseName=${system:test.tmp.dir}/engesc_6056;create=true','','',
+'CREATE TABLE person ("id" INTEGER, "name" VARCHAR(25), "jid" INTEGER, "cid" 
INTEGER)' );
+
+SELECT
+dboutput ( 
'jdbc:derby:;databaseName=${system:test.tmp.dir}/engesc_6056;create=true','','',
+'CREATE TABLE country ("id" INTEGER, "name" VARCHAR(25))' );
+
+CREATE EXTERNAL TABLE person
+(
+ id int,
+ name varchar(25),
+ jid int,
+ cid int
+)
+STORED BY 'org.apache.hive.storage.jdbc.JdbcStorageHandler'
+TBLPROPERTIES (
+                "hive.sql.database.type" = "DERBY",
+                "hive.sql.jdbc.driver" = 
"org.apache.derby.jdbc.EmbeddedDriver",
+                "hive.sql.jdbc.url" = 
"jdbc:derby:;databaseName=${system:test.tmp.dir}/engesc_6056;create=true;collation=TERRITORY_BASED:PRIMARY",

Review comment:
       If needed let's replace `engesc_6056` with `hive_25530`, but we probably 
don't need to avoid collisions and we can simply go for "db" or similar.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to