deephaven.experimental.sql

evaluate(sql, dry_run=False)[source]

Evaluates an SQL query and returns the result.

The query scope is taken from the environment when this method is called.

Parameters:
  • sql (str) – SQL query string

  • dry_run (bool, optional) – if the query should be a dry run, default is False

Return type:

Union[Table, JType]

Returns:

a new Table, or a java TableSpec if dry_run is True

Raises:

DHError