"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPreAggregateTimeDimensionColumnName = exports.getPreAggregateMetricComponentColumnName = exports.getPreAggregateMetricColumnName = exports.getPreAggregateJoinedDimensionColumnName = exports.getPreAggregateExploreName = exports.PRE_AGGREGATE_MATERIALIZED_TABLE_PLACEHOLDER = exports.PRE_AGGREGATE_EXPLORE_PREFIX = void 0;
exports.PRE_AGGREGATE_EXPLORE_PREFIX = '__preagg__';
exports.PRE_AGGREGATE_MATERIALIZED_TABLE_PLACEHOLDER = '${materialized_table}';
const getPreAggregateExploreName = (exploreName, preAggregateName) => `${exports.PRE_AGGREGATE_EXPLORE_PREFIX}${exploreName}__${preAggregateName}`;
exports.getPreAggregateExploreName = getPreAggregateExploreName;
const getPreAggregateJoinedDimensionColumnName = (tableName, dimensionName) => `ldj__${tableName}__${dimensionName}`;
exports.getPreAggregateJoinedDimensionColumnName = getPreAggregateJoinedDimensionColumnName;
const getPreAggregateMetricColumnName = (fieldId) => fieldId;
exports.getPreAggregateMetricColumnName = getPreAggregateMetricColumnName;
const getPreAggregateMetricComponentColumnName = (fieldId, component) => `${fieldId}__${component}`;
exports.getPreAggregateMetricComponentColumnName = getPreAggregateMetricComponentColumnName;
const getPreAggregateTimeDimensionColumnName = (dimensionName, granularity) => `${dimensionName}_${granularity.toLowerCase()}`;
exports.getPreAggregateTimeDimensionColumnName = getPreAggregateTimeDimensionColumnName;
//# sourceMappingURL=naming.js.map