Fix #15571: fix url enum variant size

This commit is contained in:
Julian Amarilla 2025-04-23 21:35:17 -03:00
parent f963df2350
commit 3a7439844f

View File

@ -167,7 +167,7 @@ fn command(
let hive_options = build_hive_options(plugin, call)?;
let uri = spanned_file.item.clone();
let data_source = if resource.cloud_options.is_none() {
let data_source = if resource.cloud_options.is_some() {
Url::from_str(&uri)
.map(|url| DataSource::Url(url.into()))
.unwrap_or_else(|_| DataSource::FilePath(uri.into()))