R/sgl_cta_identity.R

Defines functions expr_text.sgl_cta_identity is_transformation.sgl_cta_identity is_aggregation.sgl_cta_identity valid_cta.sgl_cta_identity new_sgl_cta_identity

new_sgl_cta_identity <- function() {
  new_sgl_cta(class = "sgl_cta_identity")
}

#' @export
valid_cta.sgl_cta_identity <- function(cta, col_expr, df) {
  if (col_expr$column == "*") {
    stop("Error: '*' can only be used inside an aggregation function")
  }
}

#' @export
is_aggregation.sgl_cta_identity <- function(cta) {
  FALSE
}

#' @export
is_transformation.sgl_cta_identity <- function(cta) {
  FALSE
}

#' @export
expr_text.sgl_cta_identity <- function(cta, col_expr) {
  col_expr$column
}

Try the rsgl package in your browser

Any scripts or data that you put into this service are public.

rsgl documentation built on June 9, 2026, 1:07 a.m.