Before ingesting Vertica metadata into Dawiso, create a dedicated Vertica user and grant it the necessary permissions.

Dawiso supports the traditional authentication method using credentials to connect. Dawiso never modifies your data, though reading stored procedure source code also requires granting EXECUTE on them, not just read access.

Supported Vertica versions

  • Dawiso has been verified on Vertica 11.1, 12.0 and 25.4 (Community Edition). Earlier versions haven’t been verified.
  • On Vertica 11.x, reading the source code of stored procedures requires one more permission. See Stored procedures.

Connection prerequisites

  • Your Vertica account has administrator-level privileges
  • The default Vertica function packages are installed. A standard Vertica installation includes them. Dawiso uses the LISTAGG function from these packages to read primary and foreign key columns.

Create new Vertica user

Create a new dedicated user (e.g., dawiso_user) using the following statement:

CREATE USER dawiso_user IDENTIFIED BY 'password';
  • Replace password with a strong password.
  • If you choose a custom username, replace it in all following statements too.

For more information, refer to the official Vertica documentation.

Tip

To ingest metadata from your on-premises sources, whitelist Dawiso’s IP address so Dawiso can connect to your internal sources (pull method). Whitelist the same IP for Dawiso Integration Runtime (DIR) to send data from your on-premises infrastructure to Dawiso Cloud (push method).

Contact your Account Manager to get the Dawiso IP address.

Grant permissions

Vertica catalog views only return the objects that the querying user is allowed to see. Read access to the V_CATALOG schema alone is therefore not enough: the user can query the catalog views, but they return no tables, columns or procedures, and the scan comes back empty.

Grant the following permissions:

-- Read the system catalog
GRANT SELECT ON ALL TABLES IN SCHEMA v_catalog TO dawiso_user;

-- See objects across the whole database, without access to their data
GRANT SYSMONITOR TO dawiso_user;
ALTER USER dawiso_user DEFAULT ROLE SYSMONITOR;

The SYSMONITOR role lets the user see tables, columns, views, projections, sequences, constraints, functions and stored procedures across the database. It does not give access to the data stored in those tables.

Stored procedures

Vertica doesn’t store the source code of stored procedures in its catalog. Dawiso reads it with the EXPORT_OBJECTS function, which returns the source code only of procedures the user may execute. Grant the permission for each schema that contains procedures you want to import with their source code:

GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA schema_name TO dawiso_user;

Replace schema_name with the name of your schema and repeat the statement for each schema. In Vertica, this statement covers stored procedures as well as functions. There’s no ALL PROCEDURES IN SCHEMA form, and GRANT EXECUTE ON ALL PROCEDURES IN SCHEMA fails with a syntax error.

Without this permission, the procedures in that schema are imported without their source code. EXECUTE also lets the user run the procedures and functions in the schema. Dawiso never runs them; it only reads their source code.

The statement applies only to the procedures that exist when you run it. After new procedures are created in the schema, run it again, otherwise the new procedures are imported without their source code.

On Vertica 11.x, Dawiso reads the source code of procedures schema by schema, which also requires USAGE on the schema. Grant it for each schema that contains procedures:

GRANT USAGE ON SCHEMA schema_name TO dawiso_user;

USAGE doesn’t give access to the data in the schema’s tables. Without it, the procedures in that schema are imported without their source code. Vertica 12.0.4 and later don’t need this permission.

On Vertica 11.x, Dawiso can’t read the source code of procedures in a schema whose name must be enclosed in double quotes, such as a name with a space. These procedures are imported without their source code.

Alternative: grant access per schema

If you don’t want to use the SYSMONITOR role, grant access to each schema you want to import instead. Dawiso then imports only these schemas:

GRANT USAGE ON SCHEMA schema_name TO dawiso_user;
GRANT SELECT ON ALL TABLES IN SCHEMA schema_name TO dawiso_user;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA schema_name TO dawiso_user;

With these permissions, the user sees a function or stored procedure only if it may execute it, so without the EXECUTE statement the schema’s functions and procedures are not imported. Sequences are visible only to a user that may select from them. To import the schema’s sequences too, also grant:

GRANT SELECT ON ALL SEQUENCES IN SCHEMA schema_name TO dawiso_user;

A view that reads from a table in a schema you don’t grant has no lineage link to that table in Dawiso.

Warning

Unlike the SYSMONITOR role, SELECT ON ALL TABLES IN SCHEMA lets the user query the contents of every table and view in that schema, not just see their metadata, and SELECT ON ALL SEQUENCES IN SCHEMA lets the user advance the schema’s sequences with NEXTVAL. Use this alternative only for schemas whose data the integration account is also allowed to read.

Sample script

You can copy and paste the following script and run it on your server. Replace public in the last statement with your schema names. On Vertica 11.x, also grant USAGE on these schemas, see Stored procedures:

CREATE USER DawisoIntegration IDENTIFIED BY 'Password123';

GRANT SELECT ON ALL TABLES IN SCHEMA v_catalog TO DawisoIntegration;

GRANT SYSMONITOR TO DawisoIntegration;
ALTER USER DawisoIntegration DEFAULT ROLE SYSMONITOR;

-- Repeat for each schema that contains stored procedures
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA public TO DawisoIntegration;

Verify permissions

Connect as the new user and run the following queries. If either returns 0, the permissions have not been applied:

SELECT COUNT(*) FROM v_catalog.tables WHERE is_system_table = false;
SELECT COUNT(*) FROM v_catalog.columns;
SELECT COUNT(*) FROM v_catalog.user_procedures;

The procedure count can legitimately be 0 if the database has no stored procedures. To verify procedure visibility, compare it against a procedure you know exists instead of expecting a nonzero count.

To verify that Dawiso can read the source code of a procedure, run the following query with the schema, name and argument types of a procedure you know exists, for example 'sales.load_orders(int)':

SELECT EXPORT_OBJECTS('', 'schema_name.procedure_name(argument_types)', false);

If the user may execute the procedure, the query returns its CREATE PROCEDURE statement. If it fails with User has insufficient privilege on User Defined Function, grant EXECUTE on the procedure’s schema as described in Stored procedures.

On Vertica 11.x, this query fails with Catalog object ... does not exist for every procedure, even for an administrator. Run it with the schema name instead:

SELECT EXPORT_OBJECTS('', 'schema_name', false);

The result contains a CREATE PROCEDURE statement for each procedure in the schema that the user may execute. If the query fails with User has insufficient privilege on schema, grant USAGE on the schema as described in Stored procedures.

What Dawiso reads

Use this list for your security review:

  • Catalog metadata. Dawiso reads the V_CATALOG system tables: names, owners, creation times, comments, data types, view definitions, SQL function definitions, key columns, projection properties, and sequence settings, including the current value of each sequence.
  • Stored procedure source code, which Dawiso reads with the EXPORT_OBJECTS function.
  • No table contents. Dawiso doesn’t query your tables or views and doesn’t call NEXTVAL on your sequences.
  • No writes. Dawiso doesn’t create, change or run any object in your database, including your procedures and functions.