blob: 58070899ab678a5558c77b11dbcd4eaf75a5577d [file] [log] [blame]
<!DOCTYPE HTML>
<html lang="en">
<head>
<!-- Generated by javadoc (17) -->
<title>SqlValidator.Config (Apache Calcite API)</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="declaration: package: org.apache.calcite.sql.validate, interface: SqlValidator, interface: Config">
<meta name="generator" content="javadoc/ClassWriterImpl">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../script-dir/jquery-ui.min.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="../../../../../script-dir/jquery-ui.min.js"></script>
</head>
<body class="class-declaration-page">
<script type="text/javascript">var evenRowColor = "even-row-color";
var oddRowColor = "odd-row-color";
var tableTab = "table-tab";
var activeTableTab = "active-table-tab";
var pathtoroot = "../../../../../";
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="flex-box">
<header role="banner" class="flex-header">
<nav role="navigation">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="top-nav" id="navbar-top">
<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div>
<div class="about-language"><b>Apache Calcite</b></div>
<ul id="navbar-top-firstrow" class="nav-list" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="nav-bar-cell1-rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html#class">Help</a></li>
</ul>
</div>
<div class="sub-nav">
<div>
<ul class="sub-nav-list">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field-summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-summary">Method</a></li>
</ul>
<ul class="sub-nav-list">
<li>Detail:&nbsp;</li>
<li><a href="#field-detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method-detail">Method</a></li>
</ul>
</div>
<div class="nav-list-search"><label for="search-input">SEARCH:</label>
<input type="text" id="search-input" value="search" disabled="disabled">
<input type="reset" id="reset-button" value="reset" disabled="disabled">
</div>
</div>
<!-- ========= END OF TOP NAVBAR ========= -->
<span class="skip-nav" id="skip-navbar-top"></span></nav>
</header>
<div class="flex-content">
<main role="main">
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="sub-title"><span class="package-label-in-type">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.sql.validate</a></div>
<h1 title="Interface SqlValidator.Config" class="title">Interface SqlValidator.Config</h1>
</div>
<section class="class-description" id="class-description">
<dl class="notes">
<dt>Enclosing interface:</dt>
<dd><a href="SqlValidator.html" title="interface in org.apache.calcite.sql.validate">SqlValidator</a></dd>
</dl>
<hr>
<div class="type-signature"><span class="annotations">@Immutable(singleton=false)
</span><span class="modifiers">public static interface </span><span class="element-name type-name-label">SqlValidator.Config</span></div>
<div class="block">Interface to define the configuration for a SqlValidator.
Provides methods to set each configuration option.</div>
</section>
<section class="summary">
<ul class="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<section class="field-summary" id="field-summary">
<h2>Field Summary</h2>
<div class="caption"><span>Fields</span></div>
<div class="summary-table three-column-summary">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Field</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color"><code>static final <a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color"><code><a href="#DEFAULT" class="member-name-link">DEFAULT</a></code></div>
<div class="col-last even-row-color">
<div class="block">Default configuration.</div>
</div>
</div>
</section>
</li>
<!-- ========== METHOD SUMMARY =========== -->
<li>
<section class="method-summary" id="method-summary">
<h2>Method Summary</h2>
<div id="method-summary-table">
<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="method-summary-table-tab0" role="tab" aria-selected="true" aria-controls="method-summary-table.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table', 3)" class="active-table-tab">All Methods</button><button id="method-summary-table-tab2" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab2', 3)" class="table-tab">Instance Methods</button><button id="method-summary-table-tab3" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab3', 3)" class="table-tab">Abstract Methods</button><button id="method-summary-table-tab5" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab5', 3)" class="table-tab">Default Methods</button><button id="method-summary-table-tab6" role="tab" aria-selected="false" aria-controls="method-summary-table.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('method-summary-table', 'method-summary-table-tab6', 3)" class="table-tab">Deprecated Methods</button></div>
<div id="method-summary-table.tabpanel" role="tabpanel">
<div class="summary-table three-column-summary" aria-labelledby="method-summary-table-tab0">
<div class="table-header col-first">Modifier and Type</div>
<div class="table-header col-second">Method</div>
<div class="table-header col-last">Description</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#callRewrite()" class="member-name-link">callRewrite</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether to enable rewrite of "macro-like" calls such as COALESCE.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#columnReferenceExpansion()" class="member-name-link">columnReferenceExpansion</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether column reference expansion is enabled.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#conformance()" class="member-name-link">conformance</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns the dialect of SQL (SQL:2003, etc.) this validator recognizes.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default <a href="../../config/NullCollation.html" title="enum in org.apache.calcite.config">NullCollation</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#defaultNullCollation()" class="member-name-link">defaultNullCollation</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#identifierExpansion()" class="member-name-link">identifierExpansion</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether to expand identifiers other than column
references.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#lenientOperatorLookup()" class="member-name-link">lenientOperatorLookup</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether this validator should be lenient upon encountering an
unknown function, default false.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#nakedMeasures()" class="member-name-link">nakedMeasures</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether the validator allows measures to be used without the
AGGREGATE function.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code>default <a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><a href="#sqlConformance()" class="member-name-link">sqlConformance</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Use <a href="#conformance()"><code>conformance()</code></a></div>
</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code>default boolean</code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5"><code><a href="#typeCoercionEnabled()" class="member-name-link">typeCoercionEnabled</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5">
<div class="block">Returns whether the validator supports implicit type coercion.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="implicit/TypeCoercionFactory.html" title="interface in org.apache.calcite.sql.validate.implicit">TypeCoercionFactory</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#typeCoercionFactory()" class="member-name-link">typeCoercionFactory</a>()</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the type coercion factory.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>@Nullable <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type">SqlTypeCoercionRule</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#typeCoercionRules()" class="member-name-link">typeCoercionRules</a>()</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Returns the type coercion rules for explicit type coercion.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withCallRewrite(boolean)" class="member-name-link">withCallRewrite</a><wbr>(boolean&nbsp;rewrite)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether to enable rewrite of "macro-like" calls such as COALESCE.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withColumnReferenceExpansion(boolean)" class="member-name-link">withColumnReferenceExpansion</a><wbr>(boolean&nbsp;expand)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether to enable expansion of column references.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withConformance(org.apache.calcite.sql.validate.SqlConformance)" class="member-name-link">withConformance</a><wbr>(<a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a>&nbsp;conformance)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the SQL conformance of the validator.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withDefaultNullCollation(org.apache.calcite.config.NullCollation)" class="member-name-link">withDefaultNullCollation</a><wbr>(<a href="../../config/NullCollation.html" title="enum in org.apache.calcite.config">NullCollation</a>&nbsp;nullCollation)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withIdentifierExpansion(boolean)" class="member-name-link">withIdentifierExpansion</a><wbr>(boolean&nbsp;expand)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether to enable expansion of identifiers other than column
references.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withLenientOperatorLookup(boolean)" class="member-name-link">withLenientOperatorLookup</a><wbr>(boolean&nbsp;lenient)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether this validator should be lenient upon encountering an unknown
function.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withNakedMeasures(boolean)" class="member-name-link">withNakedMeasures</a><wbr>(boolean&nbsp;nakedMeasures)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether the validator allows measures to be used without the
AGGREGATE function.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code>default <a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6"><code><a href="#withSqlConformance(org.apache.calcite.sql.validate.SqlConformance)" class="member-name-link">withSqlConformance</a><wbr>(<a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a>&nbsp;conformance)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab5 method-summary-table-tab6">
<div class="block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Use <a href="#conformance()"><code>conformance()</code></a></div>
</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withTypeCoercionEnabled(boolean)" class="member-name-link">withTypeCoercionEnabled</a><wbr>(boolean&nbsp;enabled)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets whether to enable implicit type coercion for validation, default true.</div>
</div>
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withTypeCoercionFactory(org.apache.calcite.sql.validate.implicit.TypeCoercionFactory)" class="member-name-link">withTypeCoercionFactory</a><wbr>(<a href="implicit/TypeCoercionFactory.html" title="interface in org.apache.calcite.sql.validate.implicit">TypeCoercionFactory</a>&nbsp;factory)</code></div>
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets a factory to create type coercion instance that overrides the
default coercion rules defined in
<a href="implicit/TypeCoercionImpl.html" title="class in org.apache.calcite.sql.validate.implicit"><code>TypeCoercionImpl</code></a>.</div>
</div>
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></code></div>
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><a href="#withTypeCoercionRules(org.apache.calcite.sql.type.SqlTypeCoercionRule)" class="member-name-link">withTypeCoercionRules</a><wbr>(@Nullable <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type">SqlTypeCoercionRule</a>&nbsp;rules)</code></div>
<div class="col-last odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3">
<div class="block">Sets the <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type"><code>SqlTypeCoercionRule</code></a> instance which defines the type conversion matrix
for the explicit type coercion.</div>
</div>
</div>
</div>
</div>
</section>
</li>
</ul>
</section>
<section class="details">
<ul class="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<section class="field-details" id="field-detail">
<h2>Field Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="DEFAULT">
<h3>DEFAULT</h3>
<div class="member-signature"><span class="modifiers">static final</span>&nbsp;<span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">DEFAULT</span></div>
<div class="block">Default configuration.</div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<section class="method-details" id="method-detail">
<h2>Method Details</h2>
<ul class="member-list">
<li>
<section class="detail" id="callRewrite()">
<h3>callRewrite</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">callRewrite</span>()</div>
<div class="block">Returns whether to enable rewrite of "macro-like" calls such as COALESCE.</div>
</section>
</li>
<li>
<section class="detail" id="withCallRewrite(boolean)">
<h3>withCallRewrite</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withCallRewrite</span><wbr><span class="parameters">(boolean&nbsp;rewrite)</span></div>
<div class="block">Sets whether to enable rewrite of "macro-like" calls such as COALESCE.</div>
</section>
</li>
<li>
<section class="detail" id="defaultNullCollation()">
<h3>defaultNullCollation</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="../../config/NullCollation.html" title="enum in org.apache.calcite.config">NullCollation</a></span>&nbsp;<span class="element-name">defaultNullCollation</span>()</div>
<div class="block">Returns how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</section>
</li>
<li>
<section class="detail" id="withDefaultNullCollation(org.apache.calcite.config.NullCollation)">
<h3>withDefaultNullCollation</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withDefaultNullCollation</span><wbr><span class="parameters">(<a href="../../config/NullCollation.html" title="enum in org.apache.calcite.config">NullCollation</a>&nbsp;nullCollation)</span></div>
<div class="block">Sets how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</section>
</li>
<li>
<section class="detail" id="columnReferenceExpansion()">
<h3>columnReferenceExpansion</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">columnReferenceExpansion</span>()</div>
<div class="block">Returns whether column reference expansion is enabled.</div>
</section>
</li>
<li>
<section class="detail" id="withColumnReferenceExpansion(boolean)">
<h3>withColumnReferenceExpansion</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withColumnReferenceExpansion</span><wbr><span class="parameters">(boolean&nbsp;expand)</span></div>
<div class="block">Sets whether to enable expansion of column references. (Currently this does
not apply to the ORDER BY clause; may be fixed in the future.)</div>
</section>
</li>
<li>
<section class="detail" id="identifierExpansion()">
<h3>identifierExpansion</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">identifierExpansion</span>()</div>
<div class="block">Returns whether to expand identifiers other than column
references.
<p>REVIEW jvs 30-June-2006: subclasses may override shouldExpandIdentifiers
in a way that ignores this; we should probably get rid of the protected
method and always use this variable (or better, move preferences like
this to a separate "parameter" class).</div>
</section>
</li>
<li>
<section class="detail" id="withIdentifierExpansion(boolean)">
<h3>withIdentifierExpansion</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withIdentifierExpansion</span><wbr><span class="parameters">(boolean&nbsp;expand)</span></div>
<div class="block">Sets whether to enable expansion of identifiers other than column
references.</div>
</section>
</li>
<li>
<section class="detail" id="lenientOperatorLookup()">
<h3>lenientOperatorLookup</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">lenientOperatorLookup</span>()</div>
<div class="block">Returns whether this validator should be lenient upon encountering an
unknown function, default false.
<p>If true, if a statement contains a call to a function that is not
present in the operator table, or if the call does not have the required
number or types of operands, the validator nevertheless regards the
statement as valid. The type of the function call will be
<a href="SqlValidator.html#getUnknownType()"><code>UNKNOWN</code></a>.
<p>If false (the default behavior), an unknown function call causes a
validation error to be thrown.</div>
</section>
</li>
<li>
<section class="detail" id="withLenientOperatorLookup(boolean)">
<h3>withLenientOperatorLookup</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withLenientOperatorLookup</span><wbr><span class="parameters">(boolean&nbsp;lenient)</span></div>
<div class="block">Sets whether this validator should be lenient upon encountering an unknown
function.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>lenient</code> - Whether to be lenient when encountering an unknown function</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="nakedMeasures()">
<h3>nakedMeasures</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">nakedMeasures</span>()</div>
<div class="block">Returns whether the validator allows measures to be used without the
AGGREGATE function. Default is true.</div>
</section>
</li>
<li>
<section class="detail" id="withNakedMeasures(boolean)">
<h3>withNakedMeasures</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withNakedMeasures</span><wbr><span class="parameters">(boolean&nbsp;nakedMeasures)</span></div>
<div class="block">Sets whether the validator allows measures to be used without the
AGGREGATE function.</div>
</section>
</li>
<li>
<section class="detail" id="typeCoercionEnabled()">
<h3>typeCoercionEnabled</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">typeCoercionEnabled</span>()</div>
<div class="block">Returns whether the validator supports implicit type coercion.</div>
</section>
</li>
<li>
<section class="detail" id="withTypeCoercionEnabled(boolean)">
<h3>withTypeCoercionEnabled</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withTypeCoercionEnabled</span><wbr><span class="parameters">(boolean&nbsp;enabled)</span></div>
<div class="block">Sets whether to enable implicit type coercion for validation, default true.</div>
<dl class="notes">
<dt>See Also:</dt>
<dd>
<ul class="see-list">
<li><a href="implicit/TypeCoercionImpl.html" title="class in org.apache.calcite.sql.validate.implicit"><code>TypeCoercionImpl</code></a></li>
</ul>
</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="typeCoercionFactory()">
<h3>typeCoercionFactory</h3>
<div class="member-signature"><span class="return-type"><a href="implicit/TypeCoercionFactory.html" title="interface in org.apache.calcite.sql.validate.implicit">TypeCoercionFactory</a></span>&nbsp;<span class="element-name">typeCoercionFactory</span>()</div>
<div class="block">Returns the type coercion factory.</div>
</section>
</li>
<li>
<section class="detail" id="withTypeCoercionFactory(org.apache.calcite.sql.validate.implicit.TypeCoercionFactory)">
<h3>withTypeCoercionFactory</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withTypeCoercionFactory</span><wbr><span class="parameters">(<a href="implicit/TypeCoercionFactory.html" title="interface in org.apache.calcite.sql.validate.implicit">TypeCoercionFactory</a>&nbsp;factory)</span></div>
<div class="block">Sets a factory to create type coercion instance that overrides the
default coercion rules defined in
<a href="implicit/TypeCoercionImpl.html" title="class in org.apache.calcite.sql.validate.implicit"><code>TypeCoercionImpl</code></a>.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>factory</code> - Factory to create <a href="implicit/TypeCoercion.html" title="interface in org.apache.calcite.sql.validate.implicit"><code>TypeCoercion</code></a> instance</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="typeCoercionRules()">
<h3>typeCoercionRules</h3>
<div class="member-signature"><span class="return-type">@Nullable <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type">SqlTypeCoercionRule</a></span>&nbsp;<span class="element-name">typeCoercionRules</span>()</div>
<div class="block">Returns the type coercion rules for explicit type coercion.</div>
</section>
</li>
<li>
<section class="detail" id="withTypeCoercionRules(org.apache.calcite.sql.type.SqlTypeCoercionRule)">
<h3>withTypeCoercionRules</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withTypeCoercionRules</span><wbr><span class="parameters">(@Nullable <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type">SqlTypeCoercionRule</a>&nbsp;rules)</span></div>
<div class="block">Sets the <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type"><code>SqlTypeCoercionRule</code></a> instance which defines the type conversion matrix
for the explicit type coercion.
<p>The <code>rules</code> setting should be thread safe. In the default implementation,
it is set to a ThreadLocal variable.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>rules</code> - The <a href="../type/SqlTypeCoercionRule.html" title="class in org.apache.calcite.sql.type"><code>SqlTypeCoercionRule</code></a> instance,
see its documentation for how to customize the rules</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="conformance()">
<h3>conformance</h3>
<div class="member-signature"><span class="annotations">@Default
</span><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a></span>&nbsp;<span class="element-name">conformance</span>()</div>
<div class="block">Returns the dialect of SQL (SQL:2003, etc.) this validator recognizes.
Default is <a href="SqlConformanceEnum.html#DEFAULT"><code>SqlConformanceEnum.DEFAULT</code></a>.</div>
</section>
</li>
<li>
<section class="detail" id="sqlConformance()">
<h3>sqlConformance</h3>
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a></span>&nbsp;<span class="element-name">sqlConformance</span>()</div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Use <a href="#conformance()"><code>conformance()</code></a></div>
</div>
<div class="block">Returns the SQL conformance.</div>
</section>
</li>
<li>
<section class="detail" id="withConformance(org.apache.calcite.sql.validate.SqlConformance)">
<h3>withConformance</h3>
<div class="member-signature"><span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withConformance</span><wbr><span class="parameters">(<a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a>&nbsp;conformance)</span></div>
<div class="block">Sets the SQL conformance of the validator.</div>
</section>
</li>
<li>
<section class="detail" id="withSqlConformance(org.apache.calcite.sql.validate.SqlConformance)">
<h3>withSqlConformance</h3>
<div class="member-signature"><span class="annotations"><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html" title="class or interface in java.lang" class="external-link">@Deprecated</a>
</span><span class="modifiers">default</span>&nbsp;<span class="return-type"><a href="SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a></span>&nbsp;<span class="element-name">withSqlConformance</span><wbr><span class="parameters">(<a href="SqlConformance.html" title="interface in org.apache.calcite.sql.validate">SqlConformance</a>&nbsp;conformance)</span></div>
<div class="deprecation-block"><span class="deprecated-label">Deprecated.</span>
<div class="deprecation-comment">Use <a href="#conformance()"><code>conformance()</code></a></div>
</div>
<div class="block">Sets the SQL conformance of the validator.</div>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footer role="contentinfo">
<hr>
<p class="legal-copy"><small>Copyright &copy; 2012-2023 Apache Software Foundation. All Rights Reserved.</small></p>
</footer>
</div>
</div>
</body>
</html>