> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-postgresql-tls-support.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# short_circuit_function_evaluation_* 세션 설정

> short_circuit_function_evaluation_* 생성 그룹에 대한 ClickHouse 세션 설정입니다.

export const VersionHistory = ({rows = []}) => {
  if (rows.length === 0) {
    return null;
  }
  const headers = ["버전", "기본값", "설명"];
  const border = "1px solid rgba(128, 128, 128, 0.3)";
  const cell = {
    border,
    padding: "0.25rem 0.5rem",
    textAlign: "start",
    verticalAlign: "top"
  };
  return <details className="not-prose" style={{
    border,
    borderRadius: "0.5rem",
    margin: "0.5rem 0",
    padding: "0.5rem 0.75rem",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <summary style={{
    cursor: "pointer",
    fontWeight: 600,
    opacity: 0.72
  }}>
        버전 이력
      </summary>
      <table style={{
    borderCollapse: "collapse",
    width: "100%",
    margin: "0.5rem 0 0"
  }}>
        <thead>
          <tr>
            {headers.map(header => <th key={header} style={{
    ...cell,
    fontWeight: 600,
    opacity: 0.72
  }}>
                {header}
              </th>)}
          </tr>
        </thead>
        <tbody>
          {rows.map((row, row_index) => <tr key={row.id ?? row_index}>
              {(row.items ?? []).map((item, item_index) => <td key={item_index} style={{
    ...cell,
    overflowWrap: "anywhere"
  }}>
                  {item?.label}
                </td>)}
            </tr>)}
        </tbody>
      </table>
    </details>;
};

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>유형</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>기본값</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          재시작 없이 변경 가능
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

이 설정은 [system.settings](/ko/reference/system-tables/settings)에서 확인할 수 있으며, [source](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp)를 기반으로 자동 생성됩니다.

<div id="short_circuit_function_evaluation">
  ## short\_circuit\_function\_evaluation
</div>

<SettingsInfoBlock type="ShortCircuitFunctionEvaluation" default_value="enable" />

[단락 평가 방식](https://en.wikipedia.org/wiki/Short-circuit_evaluation)에 따라 [if](/ko/reference/functions/regular-functions/conditional-functions#if), [multiIf](/ko/reference/functions/regular-functions/conditional-functions#multiIf), [and](/ko/reference/functions/regular-functions/logical-functions#and), [or](/ko/reference/functions/regular-functions/logical-functions#or) 함수를 계산할 수 있도록 합니다. 이를 통해 이러한 함수에서 복잡한 표현식의 실행을 최적화하고, 예기치 않은 경우의 0으로 나누기와 같은 예외가 발생할 가능성을 줄일 수 있습니다.

가능한 값:

* `enable` — 단락 평가에 적합한 함수(예외를 발생시킬 수 있거나 계산 비용이 큰 함수)에 대해 short-circuit 함수 평가를 활성화합니다.
* `force_enable` — 모든 함수에 대해 short-circuit 함수 평가를 활성화합니다.
* `disable` — short-circuit 함수 평가를 비활성화합니다.

<div id="short_circuit_function_evaluation_for_nulls">
  ## short\_circuit\_function\_evaluation\_for\_nulls
</div>

<SettingsInfoBlock type="Bool" default_value="1" />

인수 중 하나라도 NULL이면 NULL을 반환하는 함수의 평가를 최적화합니다. 함수 인수의 NULL 값 비율이 short\_circuit\_function\_evaluation\_for\_nulls\_threshold를 초과하면 시스템은 함수를 행별로 평가하지 않습니다. 대신 모든 행에 대해 즉시 NULL을 반환하여 불필요한 계산을 줄입니다.

<div id="short_circuit_function_evaluation_for_nulls_threshold">
  ## short\_circuit\_function\_evaluation\_for\_nulls\_threshold
</div>

<SettingsInfoBlock type="Double" default_value="1" />

널 허용 인수가 있는 함수를 모든 인수의 값이 non-NULL인 행에서만 실행하기 위한 NULL 값 비율의 임계값입니다. short\_circuit\_function\_evaluation\_for\_nulls 설정이 활성화된 경우 적용됩니다.
NULL 값을 포함한 행의 비율이 전체 행 수 대비 이 임계값을 초과하면, NULL 값을 포함한 해당 행은 평가되지 않습니다.
