queryengine

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package queryengine is the contract between Baleia and the engines that run SQL (docs/adr/0002, 0006). This file holds the execution target; the engine contract itself lands with #20.

Index

Constants

View Source
const (
	CancelWindow     = 3 * time.Second
	CancelMinAttempt = time.Second
)

CancelWindow is how long a cancel keeps looking for a statement it did not find; CancelMinAttempt is the least time one attempt gets, so the last one is not cut short.

View Source
const StatementTagKey = "statement_tag"

StatementTagKey is the QueryHandle.Extra key that carries the tag.

Variables

View Source
var ErrCancelUnsupported = errors.New("cancel by handle is not supported by this engine")

ErrCancelUnsupported is returned by Cancel on engines whose CancelScope is in_process.

View Source
var ErrKindNotRegistered = errors.New("engine kind not registered")

ErrKindNotRegistered means no adapter registered the engine's kind.

View Source
var ErrQueryUnknown = errors.New("queryengine: query not known to the engine")

ErrQueryUnknown: the engine does not know the query (any more).

Functions

func As

func As[T any](e Engine) (T, bool)

As finds an extension or concrete type behind the Manager's wrappers.

func CancelUntilFound

func CancelUntilFound(window time.Duration, cancel func(left time.Duration) (bool, error)) error

CancelUntilFound runs cancel until it reports that it cancelled the statement, for up to window. A statement still missing after the window has finished, which is not an error. cancel gets the time left (at least CancelMinAttempt), so a stalled attempt cannot stretch the call much past the window.

func Collect

func Collect(ctx context.Context, e Engine, spec SessionSpec, sql string, maxRows int64) (arrow.Table, error)

Collect runs one statement in a fresh session and returns its first result set as an in-memory table. Past maxRows the statement is cancelled and the error is resource_exhausted. The caller releases the table.

func CollectStrings

func CollectStrings(ctx context.Context, e Engine, spec SessionSpec, sql string, maxRows int64) ([][]string, error)

CollectStrings is Collect rendered as text, for listings: one row per result row, NULL as "".

func CollectStringsWith

func CollectStringsWith(ctx context.Context, e Engine, spec SessionSpec, sql string, maxRows int64, cb Callbacks) ([][]string, error)

CollectStringsWith is CollectStrings with callbacks.

func CollectWith

func CollectWith(ctx context.Context, e Engine, spec SessionSpec, sql string, maxRows int64, cb Callbacks) (arrow.Table, error)

CollectWith is Collect with callbacks (heartbeats, handles).

func NewStatementTag

func NewStatementTag() string

NewStatementTag returns a tag unique to one statement.

func TagPattern

func TagPattern(tag string) string

TagPattern is the SQL LIKE pattern that matches the text of a statement tagged with tag. Tags are UUIDs: they hold no LIKE wildcards.

func TagStatement

func TagStatement(sql, tag string) string

TagStatement prefixes sql with a comment carrying tag. The engine keeps the comment in the text it shows for running statements, which is how a cancel finds this statement and no other.

Types

type Callbacks

type Callbacks struct {
	// OnStart is called as soon as the handle is known, so it can be
	// persisted for cross-process cancel (#84).
	OnStart func(h QueryHandle)
	// OnProgress reports progress; callers use it for heartbeats.
	OnProgress func(p Progress)
}

Callbacks report on a running statement.

type CancelScope

type CancelScope string

CancelScope says where a statement can be cancelled from.

const (
	// CancelAnyProcess: Cancel works with a persisted handle from any process.
	CancelAnyProcess CancelScope = "any_process"
	// CancelInProcess: only cancelling the Execute context works; Cancel
	// returns ErrCancelUnsupported.
	CancelInProcess CancelScope = "in_process"
)

type Capabilities

type Capabilities struct {
	Dialect            string   // internal/dialect registry key
	IdentityModes      []string // "impersonation", "connection", "per_user"
	ReadOnly           ReadOnlySupport
	CancelScope        CancelScope
	SupportsCancel     bool
	Transactions       bool // BEGIN/COMMIT/ROLLBACK within a session
	MultipleResultSets bool
	MultipleCatalogs   bool // three-part names across catalogs in one statement
	// NamespaceDepth is the schema depth in SQL: 1 for most engines, 0 when
	// there are no schemas (SQLite).
	NamespaceDepth      int
	SessionSchema       bool // a default schema can be set per session
	SupportsExplain     bool
	SupportsTimeTravel  bool   // FOR VERSION/TIMESTAMP AS OF
	SupportsCatalogDDL  bool   // informational; never used by policy
	Monitoring          bool   // a cluster monitor extension exists (Trino)
	IcebergMaintenance  bool   // ALTER TABLE … EXECUTE optimize/expire_snapshots
	ArrowNative         bool   // results arrive as Arrow (Flight SQL)
	MaxIdentifierLength int    // 0 = unknown
	IdentifierCase      string // unquoted identifiers: "preserve", "lower" or "upper"
}

Capabilities declare what an engine can do; generic code never assumes any of them. They never authorize anything: what a user may do is internal/policy (TestGateNotCapabilityDriven).

type CatalogCredentials

type CatalogCredentials interface {
	CatalogToken(ctx context.Context, engineID string, spec SessionSpec) (string, error)
}

CatalogCredentials supplies a session's CatalogToken (#648): the principal's identity-provider token, or the token of the per-user connection behind the session's catalog when the principal has none.

type Class

type Class string

Class says whether an engine hosts catalogs from other connections (federated: Trino, later Doris/StarRocks) or runs SQL on its own data (direct: PostgreSQL, MySQL, …).

const (
	ClassFederated Class = "federated"
	ClassDirect    Class = "direct"
)

type Dialect

type Dialect = dialect.Dialect

Dialect is how an engine spells SQL (internal/dialect).

type Engine

type Engine interface {
	ID() string
	Kind() string
	Class() Class
	Capabilities() Capabilities
	Dialect() Dialect
	// OpenSession reserves what the engine needs to keep state across
	// statements: a dedicated connection, or client-side state.
	OpenSession(ctx context.Context, spec SessionSpec) (Session, error)
	// Cancel cancels a running statement by handle, possibly from another
	// process. A statement that is no longer running is not an error.
	Cancel(ctx context.Context, h QueryHandle) error
	Ping(ctx context.Context) error
	// Introspector returns nil when the engine cannot list its own metadata.
	Introspector() Introspector
	Close() error
}

Engine is the only way the backend runs SQL. Binding catalogs, cluster monitoring and table maintenance are engine-specific extensions, never part of this interface.

func Guard

func Guard(e Engine, credentialsReadOnly bool) Engine

Guard applies the generic rules the Manager applies to every engine (today the read-only rule) to an engine built outside it, such as in tests and the conformance suite.

type EngineRow

type EngineRow struct {
	ID           string
	Name         string
	Kind         string
	Class        Class
	IdentityMode string
	// CredentialsReadOnly is the admin assertion that the connection's user
	// cannot write (docs/adr/0011).
	CredentialsReadOnly bool
}

EngineRow is what a factory needs from an `engines` row (#13). It carries no secret: the decrypted connection arrives separately as a Config.

type Error

type Error struct {
	Code    ErrorCode
	Message string
	Engine  string
	Native  string
}

Error is a typed engine failure. Message is safe to log; Native is the engine's own code (SQLSTATE, Trino errorName, …).

func NewError

func NewError(code ErrorCode, engine, native, msg string) *Error

NewError builds an *Error.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Is

func (e *Error) Is(target error) bool

Is matches another *Error by code, so errors.Is(err, &Error{Code: c}) works.

type ErrorCode

type ErrorCode string

ErrorCode is the bounded set of failures an engine reports (docs/adr/0008). The API maps codes to responses; native messages never cross the API boundary.

const (
	CodeSyntax       ErrorCode = "syntax"
	CodeNotFound     ErrorCode = "not_found"
	CodePermission   ErrorCode = "permission_denied"
	CodeTimeout      ErrorCode = "timeout"
	CodeCancelled    ErrorCode = "cancelled"
	CodeResource     ErrorCode = "resource_exhausted"
	CodeUnavailable  ErrorCode = "engine_unavailable"
	CodeReadOnly     ErrorCode = "read_only_unsupported"
	CodeConflict     ErrorCode = "conflict" // serialization/deadlock — never retried automatically
	CodeScopeMissing ErrorCode = "catalog_scope_missing"
	CodeInternal     ErrorCode = "internal"
	CodeStorage      ErrorCode = "storage_error"
)

func CodeOf

func CodeOf(err error) ErrorCode

CodeOf returns the code of an engine error, CodeCancelled for a cancelled context, CodeTimeout for an expired one, and CodeInternal for anything else.

type Factory

type Factory func(ctx context.Context, row EngineRow, cfg connections.Config, d *connections.Dialer) (Engine, error)

Factory builds an engine instance. Every network dial goes through d (docs/adr/0011).

type IcebergHealthSQL

type IcebergHealthSQL struct {
	// Snapshots returns one row: the number of snapshots, the oldest commit
	// in epoch milliseconds ("" when there is none), and the commits in the
	// hour and in the day up to now.
	Snapshots string
	// Current returns the main branch's snapshot id and its summary as a
	// JSON object; no row for a table without snapshots.
	Current string
	// Properties returns the table's properties as key and value rows.
	Properties string
}

IcebergHealthSQL reads one Iceberg table's health through the engine. Every statement reads the table's metadata only, never its manifests.

type IcebergMaintainer

type IcebergMaintainer interface {
	MaintenanceStatements(table []string, retention string) ([]string, error)
	// IcebergStatement renders one operation with its parameters (#500).
	IcebergStatement(table []string, op IcebergOperation) (string, error)
	// IcebergMetricsStatements render the counts of the table's data files
	// smaller than targetFileSize and of its manifests.
	IcebergMetricsStatements(table []string, targetFileSize int64) (smallFiles, manifests string, err error)
	// IcebergHealthStatements render the reads of the table's health from
	// its metadata tables, for catalogs Baleia cannot read itself (#997).
	IcebergHealthStatements(table []string, now time.Time) (IcebergHealthSQL, error)
}

IcebergMaintainer is implemented by engines with Capabilities.IcebergMaintenance. It renders the statements of one maintenance run (optimize only for an empty retention); invalid input is an error before anything runs.

type IcebergOperation

type IcebergOperation struct {
	// Name is optimize, optimize_manifests, expire_snapshots or
	// remove_orphan_files.
	Name string
	// optimize
	FileSizeThreshold  int64
	PartitionFilter    string
	SkipFilesNewerThan time.Duration
	SortedBy           []string
	// expire_snapshots and remove_orphan_files
	Retention time.Duration
	// expire_snapshots
	RetainLast           int64
	CleanExpiredMetadata *bool
}

IcebergOperation is one Iceberg maintenance procedure and its arguments. Zero fields are left to the engine's defaults.

type Identity

type Identity struct {
	UserID  string // Baleia user id ("u_<uuid>" for Trino impersonation, #92)
	AgentID string // set for agent principals (#59)
	// Principal is the Baleia user's id (a UUID) whose identity-provider
	// token the session carries to catalog managers set to per-user identity
	// (#648); "" for work without a user.
	Principal string
}

Identity says on whose behalf a session runs. It never contains secrets.

type Introspector

type Introspector interface {
	ListCatalogs(ctx context.Context) ([]string, error)
	ListSchemas(ctx context.Context, catalog string) ([][]string, error)
	ListTables(ctx context.Context, catalog string, schema []string) ([]connections.TableRef, error)
	DescribeTable(ctx context.Context, t connections.TableRef) (*connections.TableMeta, error)
}

Introspector lists metadata as the engine sees it. The queries belong to the dialect (#14).

type KindSpec

type KindSpec struct {
	Name    string
	Class   Class
	Factory Factory
}

KindSpec describes one engine kind: the adapter packages export theirs and the composition root collects them into a Registry (#364).

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager builds engines from `engines` rows on demand and caches them by (id, updated_at). A changed row builds a new instance; the old one is closed once its open sessions are closed. It is constructed at the wiring sites (docs/adr/0007).

func NewManager

func NewManager(store Store, keyring *crypto.Keyring, providers *connections.Registry, dialer *connections.Dialer, kinds *Registry) *Manager

NewManager returns a manager that builds engines of the kinds in kinds; the keyring may be nil when no stored connection has credentials.

func (*Manager) Close

func (m *Manager) Close()

Close closes every cached engine once its sessions are closed.

func (*Manager) DefaultTrino

func (m *Manager) DefaultTrino(ctx context.Context) (Engine, error)

DefaultTrino returns the engine of the default Trino cluster. Callers that do not know their target's engine yet use it (#13 PR 3 passes the engine id).

func (*Manager) Get

func (m *Manager) Get(ctx context.Context, engineID db.UUID) (Engine, error)

Get returns the engine of an `engines` row.

func (*Manager) HasKind

func (m *Manager) HasKind(kind string) bool

HasKind reports whether the manager can build engines of kind.

func (*Manager) SetCatalogCredentials

func (m *Manager) SetCatalogCredentials(c CatalogCredentials)

SetCatalogCredentials makes every session the manager's engines open carry a CatalogToken from c (#648). Call it before the first Get.

func (*Manager) Transient

func (m *Manager) Transient(ctx context.Context, kind string, cfg connections.Config) (Engine, error)

Transient builds a one-off engine of kind from a connection's config, dialing through the manager's dialer: never cached (a connection test, #12). The caller closes it.

type Progress

type Progress struct {
	State     string
	Rows      int64
	Bytes     int64
	ElapsedMs int64
}

Progress of a running statement.

type QueryHandle

type QueryHandle struct {
	EngineID string            `json:"engine_id"`
	QueryID  string            `json:"query_id"`
	Extra    map[string]string `json:"extra,omitempty"` // e.g. {"backend_pid":"1234"}
}

QueryHandle identifies a running statement well enough to cancel it from another process. It is serializable and never contains credentials.

type QueryResources

type QueryResources struct {
	PeakMemoryBytes *int64
	ProcessedRows   *int64
	ProcessedBytes  *int64
	OutputRows      *int64
	OutputBytes     *int64
	QueuedMs        *int64
	PlanningMs      *int64
}

QueryResources is a query's resource usage; a nil field is unknown.

type QueryResourcesReader

type QueryResourcesReader interface {
	QueryResources(ctx context.Context, queryID string) (QueryResources, error)
}

QueryResourcesReader reads what one query used, by its engine-side id (#407). Engines with monitoring implement it; an id the engine no longer knows is ErrQueryUnknown.

type ReadOnlySupport

type ReadOnlySupport string

ReadOnlySupport says whether an engine can enforce a read-only session.

const (
	ReadOnlyEnforced ReadOnlySupport = "enforced"
	ReadOnlyNone     ReadOnlySupport = "none"
)

type RecordSink

type RecordSink interface {
	Begin(schema *arrow.Schema) error
	Write(rec arrow.RecordBatch) error
	End(stats Stats) error
}

RecordSink receives the results of one statement. Every statement produces at least one result set: Begin once per result set (also with zero rows, and with an empty schema for statements that return no columns), Write for each batch (the sink must Release it), End to close the result set. A statement with several result sets repeats Begin/Write/End in order.

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

Registry maps engine kinds to their factories. It is built once and only read afterwards, so it is safe for concurrent use without a lock.

func NewRegistry

func NewRegistry(specs ...KindSpec) (*Registry, error)

NewRegistry builds a registry from specs. A spec without a name or a factory, or a kind listed twice, is an error.

func (*Registry) Has

func (r *Registry) Has(kind string) bool

Has reports whether kind has an adapter.

func (*Registry) Kinds

func (r *Registry) Kinds() []string

Kinds lists the registered kinds, sorted.

func (*Registry) Transient

func (r *Registry) Transient(ctx context.Context, kind string, cfg connections.Config, d *connections.Dialer) (Engine, error)

Transient builds an engine of kind from a connection's config without an `engines` row: never cached, for one check (a connection test, #12). The caller closes it.

type Session

type Session interface {
	// Execute runs ONE statement and streams its results into sink.
	Execute(ctx context.Context, sql string, cb Callbacks, sink RecordSink) error
	// Close releases the session; it rolls back an open transaction.
	Close() error
}

Session runs statements one at a time. USE/SET/transaction state persists across Execute calls on the same session.

type SessionSpec

type SessionSpec struct {
	Catalog  string   // binding.engine_catalog_name ("" = engine default)
	Schema   []string // namespace parts; the dialect renders them (#14)
	Identity Identity
	// ReadOnly comes from Target.ReadOnly (#13) or agent policy (#59). On an
	// engine that cannot enforce it, OpenSession fails with
	// read_only_unsupported unless the connection asserts read-only
	// credentials (docs/adr/0011).
	ReadOnly bool
	Timeout  time.Duration // per statement; 0 = engine default
	Tags     Tags
	// CatalogToken is the bearer token catalog managers set to per-user
	// identity receive (#648). The Manager fills it when the session opens,
	// from CatalogCredentials; it is never serialized.
	CatalogToken string `json:"-"`
	// CatalogTokenSource renews CatalogToken before each statement, so a long
	// script keeps a token its catalog accepts; nil keeps CatalogToken. Set by
	// the Manager, never serialized.
	CatalogTokenSource func(context.Context) (string, error) `json:"-"`
	// AllowedCatalogs is the workspace catalog scope this session may reach,
	// fixed at open. A user-identity spec must carry either it or
	// AllowedCatalogsSource (OpenSession fails with catalog_scope_missing
	// otherwise). Never serialized.
	//
	// A federated engine (Trino) enforces it via the guard (baleia.catalogs).
	// A direct engine (PostgreSQL, MySQL, SQL Server, …) connects to one
	// database and has no cross-catalog reach, so the scope is carried but
	// meaningless there: the connection's credentials are the boundary
	// (DESIGN-catalog-scope.md §6), and a direct-engine connection must be
	// restricted to its single database.
	AllowedCatalogs []string `json:"-"`
	// AllowedCatalogsSource renews AllowedCatalogs before each statement, so a
	// revocation stops the next statement instead of the next run; nil keeps
	// AllowedCatalogs. Set by execscope, never serialized.
	AllowedCatalogsSource func(context.Context) ([]string, error) `json:"-"`
}

SessionSpec is everything an engine needs to open a session.

type Stats

type Stats struct {
	RowCount    int64
	UpdateCount *int64 // rows affected by DML, when the engine reports it
	ElapsedMs   int64
}

Stats closes one result set.

type Store

type Store interface {
	GetEngineWithConnection(ctx context.Context, id db.UUID) (db.GetEngineWithConnectionRow, error)
	GetDefaultTrinoEngine(ctx context.Context) (db.GetDefaultTrinoEngineRow, error)
}

Store is the slice of the database the manager reads.

type Tags

type Tags struct {
	ExecutionID string
	RequestID   string
	Source      string        // "editor" | "explorer" | "sync" | "agent" | …
	Class       WorkloadClass // "" = unknown; engines that support it map it to their own mechanism
}

Tags correlate a session with Baleia; each engine maps them to its own mechanism (Trino client tags, PostgreSQL application_name, …).

type Target

type Target struct {
	EngineID      db.UUID
	EngineKind    string // "trino", "postgresql", …
	EngineName    string
	BindingID     db.UUID
	CatalogID     db.UUID
	CatalogName   string // logical name shown in the UI
	EngineCatalog string // the catalog's name in SQL on that engine
	Schema        string // optional; multi-level namespaces are joined by the dialect (#14)
	// ReadOnly comes from the workspace's permission on the catalog: a read
	// grant runs in a read-only session where the engine can enforce it
	// (docs/adr/0011, #20).
	ReadOnly bool
}

Target is where an execution runs: a binding (catalog × engine) plus an optional schema. It is resolved and authorized per request (#13) and stored with the execution.

func (Target) Snapshot

func (t Target) Snapshot() ([]byte, error)

Snapshot is the JSON stored in query_executions.target_snapshot.

type TrinoProxy

type TrinoProxy interface {
	ProxyClient() (url string, client *http.Client)
}

TrinoProxy is implemented by the Trino engine for the BI gateway (ADR 0017): the coordinator URL and the HTTP client authenticated as Baleia's admin login (dialer, CA and password). The gateway adds the request's identity, catalog scope and read-only credentials itself. The managed wrapper exposes the method for every kind, returning empty for non-Trino engines, so the gateway checks the engine kind before using the proxy.

type Versioner

type Versioner interface {
	Version(ctx context.Context) (string, error)
}

Versioner is implemented by engines that report their server version.

type WorkloadClass

type WorkloadClass string

WorkloadClass is the global kind of work a run belongs to (#399, ADR 0014). Policy speaks in classes; the capacity that applies is configured per engine.

const (
	// ClassInteractive is editor work that is cheap, table previews, Explore
	// and autocomplete introspection.
	ClassInteractive WorkloadClass = "interactive"
	// ClassHeavy is expensive editor work, large scripts and exports.
	ClassHeavy WorkloadClass = "heavy"
	// ClassBackground is retriever refreshes, metadata introspection, Iceberg
	// maintenance and agents by default.
	ClassBackground WorkloadClass = "background"
)

func (WorkloadClass) QueryPriority

func (c WorkloadClass) QueryPriority() (int, bool)

QueryPriority maps the class to Trino's query_priority session property.

Trino documents it as "The priority of queries. Larger numbers are higher priority" (trino-main SystemSessionProperties, verified on 484), so the interactive class must carry the largest number. The mapping is deliberately coarse: it is a hint to a `query_priority` resource-group policy, not the admission decision, which Baleia makes itself.

func (WorkloadClass) Valid

func (c WorkloadClass) Valid() bool

Valid reports whether the class is one of the three Baleia knows.

Directories

Path Synopsis
Package clickhouse is the ClickHouse direct engine (#83): Baleia runs SQL on a ClickHouse server itself, without Trino, over the HTTP interface.
Package clickhouse is the ClickHouse direct engine (#83): Baleia runs SQL on a ClickHouse server itself, without Trino, over the HTTP interface.
Package conformance is the suite every engine adapter must pass unchanged (#20): fake now, Trino and the direct engines as they land.
Package conformance is the suite every engine adapter must pass unchanged (#20): fake now, Trino and the direct engines as they land.
Package fake is a scripted engine for tests.
Package fake is a scripted engine for tests.
Package flightsql is the Arrow Flight SQL direct engine (#83): one adapter reaches any Flight SQL server (Dremio, DuckDB, InfluxDB, Doris/StarRocks, …).
Package flightsql is the Arrow Flight SQL direct engine (#83): one adapter reaches any Flight SQL server (Dremio, DuckDB, InfluxDB, Doris/StarRocks, …).
testserver
Package testserver is an in-process Arrow Flight SQL server for the flightsql engine tests (#83).
Package testserver is an in-process Arrow Flight SQL server for the flightsql engine tests (#83).
Package mysql is the MySQL/MariaDB direct engine (#82, PR 2): Baleia runs SQL on a MySQL or MariaDB connection itself, without Trino.
Package mysql is the MySQL/MariaDB direct engine (#82, PR 2): Baleia runs SQL on a MySQL or MariaDB connection itself, without Trino.
Package oracle is the Oracle Database direct engine (#81, PR 2): Baleia runs SQL on an Oracle connection itself, without Trino.
Package oracle is the Oracle Database direct engine (#81, PR 2): Baleia runs SQL on an Oracle connection itself, without Trino.
Package postgresql is the PostgreSQL direct engine (#82): Baleia runs SQL on a PostgreSQL connection itself, without Trino.
Package postgresql is the PostgreSQL direct engine (#82): Baleia runs SQL on a PostgreSQL connection itself, without Trino.
Package sqlite is the SQLite direct engine (#83): Baleia runs SQL on a SQLite database file itself, without Trino.
Package sqlite is the SQLite direct engine (#83): Baleia runs SQL on a SQLite database file itself, without Trino.
Package sqlserver is the SQL Server direct engine (#81, PR 1): Baleia runs SQL on a SQL Server connection itself, without Trino.
Package sqlserver is the SQL Server direct engine (#81, PR 1): Baleia runs SQL on a SQL Server connection itself, without Trino.
Package trino is the Trino adapter of the engine contract (#25).
Package trino is the Trino adapter of the engine contract (#25).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL