Skip to content

Commit

Permalink
[CHORE] Fix issues from nightly tests (#2926)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang authored Sep 25, 2024
1 parent b1ea3b9 commit 6460a0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/daft-dsl/src/resolve_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ pub fn resolve_aggexprs(
pub fn check_column_name_validity(name: &str, schema: &Schema) -> DaftResult<()> {
let struct_expr_map = calculate_struct_expr_map(schema);

let names = if name.contains('*') {
let names = if name == "*" || name.ends_with(".*") {
if let Ok(names) = get_wildcard_matches(name, schema, &struct_expr_map) {
names
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,12 @@
" similarity_search(\n",
" df[\"embedding\"],\n",
" top_embeddings=torch.stack(top_questions[\"embedding\"]),\n",
" top_urls=top_questions[\"URL\"],\n",
" top_urls=top_questions[\"url\"],\n",
" ),\n",
")\n",
"\n",
"df = df.select(\n",
" df[\"URL\"],\n",
" df[\"url\"],\n",
" df[\"question_score\"],\n",
" df[\"search_result.related_top_question\"].alias(\"related_top_question\"),\n",
" df[\"search_result.similarity\"].alias(\"similarity\"),\n",
Expand Down

0 comments on commit 6460a0e

Please sign in to comment.