Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong number of fields with grouparray via ODBC #433

Open
jmarquardt opened this issue Nov 21, 2023 · 0 comments
Open

Wrong number of fields with grouparray via ODBC #433

jmarquardt opened this issue Nov 21, 2023 · 0 comments

Comments

@jmarquardt
Copy link

Hi,

The following statement should give a list of fields per table:

SELECT 
table AS table_name
, REPLACE(REPLACE(REPLACE(toString(groupArray(name)), '[',''), ']',''), '''', '') AS fieldlist
FROM system.columns
GROUP BY table

In DB Visualizer or native, we get the correct number of entries in the fieldlist (our test table has 367 fields), but with ODBC, we receive much more fields (some of them are listed twice or even more).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant