export const getExpressionType = (calculatedColumn, api) => {
    return calculatedColumn?.Query?.AggregatedScalarExpression == undefined
        ? 'ScalarExpression'
        : api.calculatedColumnApi.internalApi.isCumulativeAggregatedExpression(calculatedColumn.Query.AggregatedScalarExpression)
            ? 'CumulativeAggregatedExpression'
            : api.calculatedColumnApi.internalApi.isQuantileAggregatedExpression(calculatedColumn.Query.AggregatedScalarExpression)
                ? 'QuantileAggregatedExpression'
                : 'AggregatedScalarExpression';
};
