% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module_merge.R
\name{.validate_join_keys}
\alias{.validate_join_keys}
\title{Check if datasets can be merged in topological order}
\usage{
.validate_join_keys(selectors, join_keys)
}
\arguments{
\item{selectors}{(\verb{named list}) A named list of selector objects. Each element can be:
\itemize{
\item A \code{picks} object defining dataset and variable selections
\item A \code{reactive} expression returning a \code{picks} object
The names of this list are used as identifiers for tracking which variables come from which selector.
}}

\item{join_keys}{(\code{join_keys}) The join keys object}
}
\value{
\code{TRUE} if validation passes, otherwise raises a validation
error with details on which datasets cannot be merged and why.
}
\description{
Determines the topological order from join_keys, then checks that each dataset
can be joined with at least one of the previously accumulated datasets.
}
\keyword{internal}
