luocooong opened a new pull request #2352:
URL: https://github.com/apache/drill/pull/2352


   # [DRILL-8021](https://issues.apache.org/jira/browse/DRILL-8021): Add the 
srv protocol support for the mongo storage
   
   ## Description
   To support the `srv` protocol :
   ```json
   {
     "type": "mongo",
     "connection": "mongodb+srv://xxx",
   }
   ```
   
   [DNS Seed List Connection 
Format](https://docs.mongodb.com/manual/reference/connection-string/#dns-seed-list-connection-format)
   
   ## Documentation
   N/A
   
   ## Testing
   Manual tested.
   
   Successful results :
   <pre>
   apache drill> show databases;
   +---------------------+
   |     SCHEMA_NAME     |
   +---------------------+
   | cp.default          |
   | dfs.default         |
   | dfs.root            |
   | dfs.tmp             |
   | information_schema  |
   | mongo_srv.admin     |
   | mongo_srv.config    |
   | mongo_srv.local     |
   | mongo_srv.test      |
   +---------------------+
   28 rows selected (3.849 seconds)
   
   apache drill> select * from mongo_srv.test.test;
   +--------------------------------------+-------------------------+
   |                 _id                  |          date           |
   +--------------------------------------+-------------------------+
   | a"j\xC3;)\xFFc\x06\xB3j\xA9          | 2021-08-22 23:18:27.258 |
   | a"j\xC3;)\xFFc\x06\xB3j\xAA          | 2021-08-22 23:18:27.274 |
   | a"j\xC3;)\xFFc\x06\xB3j\xAB          | 2021-08-22 21:57:14.123 |
   | a"j\xC3;)\xFFc\x06\xB3j\xAC          | 2021-08-22 21:57:14.0   |
   | a%\xE4\xD2\xE8t\x86W\xED\xE6\x10\x1A | 2019-08-12 01:54:14.692 |
   +--------------------------------------+-------------------------+
   5 rows selected (3.409 seconds)
   </pre>
   


-- 
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]


Reply via email to