Uploaded image for project: 'Tajo (Retired)'
  1. Tajo (Retired)
  2. TAJO-2103

JdbcMetadataProviderBase need to differentiate between database name in DBMS and database name in Tajo.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • JDBC Storage
    • None

    Description

      When using mapped_database configuration in JDBCTablespace, users can map actual database name in RDBMS to virtual database name in Tajo. If users set tajo-storage.json as follow:

      {
        "spaces": {
          "pgsql_db1": {
            "uri": "jdbc:postgresql://hostname:port/db1",
            "configs": {
              "mapped_database": "tajo_db1",
              "connection_properties": {
                "user":     "tajo",
                "password": "xxxx"
              }
            }
          }
        }
      }
      

      In above example, the database db1 in PostgreSQL will be mapped the database tajo_db1 in Tajo. And users can write select statement, for example, "SELECT * from tajo_db1.Xyz".

      But actually, if mapped database name is not equals to actual database name, users won't be able to get table in Tajo because JdbcMetadataProviderBase always get table with mapped database name. The provider need to differentiate between database name in DBMS and database name in Tajo.

      Attachments

        Issue Links

          Activity

            People

              blrunner JaeHwa Jung
              blrunner JaeHwa Jung
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: