AngersZhuuuu opened a new pull request #25975: [SPARK-29288][SQL] Spark SQL ADD 
JAR support HTTP path. 
URL: https://github.com/apache/spark/pull/25975
 
 
   ### What changes were proposed in this pull request?
   Support Spark SQL add jar with http/https/ftp path.
   
   ### Why are the changes needed?
   Hive 2.3 support add jar with http path, Spark SQL add this feature too.
   
   ### Does this PR introduce any user-facing change?
   User can use SPARK SQL `ADD JAR` with http/https/ftp path such as :
   
   ```
   0: jdbc:hive2://localhost:10000/default> add jar 
https://maven-central.storage-download.googleapis.com/repos/central/data/org/apache/hive/hcatalog/hive-hcatalog-core/2.3.5/hive-hcatalog-core-2.3.5.jar;
   INFO  : Added 
[/private/var/folders/4l/7_c5c97s1_gb0d9_d6shygx00000gn/T/spark-504057ea-5b3b-4cac-ae3f-ecd368c55923/userFiles-deedcbb7-d3dc-45a5-8f04-246882f87b1b/hive-hcatalog-core-2.3.5.jar]
 to class path
   INFO  : Added resources: 
[/private/var/folders/4l/7_c5c97s1_gb0d9_d6shygx00000gn/T/spark-504057ea-5b3b-4cac-ae3f-ecd368c55923/userFiles-deedcbb7-d3dc-45a5-8f04-246882f87b1b/hive-hcatalog-core-2.3.5.jar]
   +---------+
   | result  |
   +---------+
   +---------+
   No rows selected (0.785 seconds)
   0: jdbc:hive2://localhost:10000/default> CREATE TABLE addJar(key string) ROW 
FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe';
   +---------+
   | Result  |
   +---------+
   +---------+
   No rows selected (0.743 seconds)
   0: jdbc:hive2://localhost:10000/default> insert into table addJar select 1;
   +---------+
   | Result  |
   +---------+
   +---------+
   No rows selected (2.656 seconds)
   0: jdbc:hive2://localhost:10000/default> select * from addJar;
   +------+
   | key  |
   +------+
   | 1    |
   +------+
   1 row selected (0.521 seconds)
   0: jdbc:hive2://localhost:10000/default>
   ```
   
   
   ### How was this patch tested?
   UT + MT

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to