Skip to content

Conversation

@abonander
Copy link
Contributor

@abonander abonander commented Sep 22, 2025

Summary

The intent of this PR is to address the remaining feedback on #244.

Fixes #295
Fixes #298
Fixes #299

Checklist

@abonander abonander force-pushed the ab/insert-metadata branch 3 times, most recently from 3a4c5c8 to f6f4a9e Compare September 29, 2025 14:22
@abonander abonander added this to the 0.14.0 milestone Oct 1, 2025
@abonander abonander marked this pull request as ready for review October 1, 2025 20:47
slvrtrn
slvrtrn previously approved these changes Oct 2, 2025
}

// TODO: what should happen if a column is mentioned multiple times?
set_columns[col] = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible?
I tried it with the console client.

SELECT
    'a' AS foo,
    'b' AS foo

Received exception from server (version 25.6.2):
Code: 179. DB::Exception: Received from localhost:9000. DB::Exception: 
Multiple expressions 'b' AS foo and 'a' AS foo for alias foo. In scope SELECT 'a' AS foo, 'b' AS foo. (MULTIPLE_EXPRESSIONS_FOR_ALIAS)

--

INSERT INTO foo (a, a, a) FORMAT Values

Received exception from server (version 25.6.2):
Code: 15. DB::Exception: Received from localhost:9000. DB::Exception: 
Column a in table default.foo (e514ca83-9edb-412e-aae0-4ccec2c4ad3d) specified more than once. (DUPLICATE_COLUMN)

@slvrtrn slvrtrn merged commit 75bc386 into main Oct 3, 2025
6 checks passed
@slvrtrn slvrtrn deleted the ab/insert-metadata branch October 8, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

3 participants