Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Applies to:Kyvos Enterprise  Kyvos Cloud  Kyvos Azure Marketplace  

Kyvos Single Node Standard Installation Kyvos Single Node Installation Kyvos Free


Here is some information about working with Presto and Presto connections.

To create a dataset with a Presto connection, perform the following. 

  1. From the Toolbox, click Datasets.
  2. Click the Actions menu (  ) and choose Add Dataset.
  3. Select the Connection type: Presto.
    The default Input type is set to SQL.
  4. Use the SQL query editor to write a query to use with Presto. See Writing SQL queries using data in Hive to learn more. 
  5. Click Refine at the top of the window to format the columns. See Formatting columns to learn more.
  6. Click Save when you are finished. You can click Revert if needed.

To query over Presto columns that have a data type that is not supported by Kyvos

Cast the data type explicitly using a cast statement in the SQL editor.
This example uses the time with time zone data type.

  • Query in Presto: SELECT current_time FROM hive.test.test100;
  • To create an equivalent query in the Kyvos SQL editor use: SELECT cast("current_time"() as VARCHAR) FROM hive.test.test100;

Presto functions

Presto functions that don't require parenthesis should use a specific format in the Kyvos SQL editor. For example: "fun_name"().

This is seen in: 

  • SELECT cast("current_time"() as VARCHAR) FROM hive.test.test100;

Limitations of Presto connection

Aliasing is mandatory for all aggregated columns or functions.

If a dataset uses a Presto connection, you can't use it to create a transformation for processing semantic models. 

Configure the Presto connection

If you don't view the PrestoConnection in the list of available connection types, you must enable it using the portal.properties file. 

To configure the Presto connection, perform the following steps: 

  1. Go to the path jakarta/webapps/kyvos/client/config and open the portal.properties file.
  2. Change allowSqlBasedFile to True.
  3. After clearing the cache, the Presto option is added to the list of Connection types.

Related topics

  • No labels