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

Allow Symbol columns to INNER JOIN to any column type #4373

Open
rodryquintero opened this issue Apr 4, 2024 · 2 comments
Open

Allow Symbol columns to INNER JOIN to any column type #4373

rodryquintero opened this issue Apr 4, 2024 · 2 comments
Labels
New feature Feature requests SQL Issues or changes relating to SQL execution

Comments

@rodryquintero
Copy link

Is your feature request related to a problem?

Currenlty unable to use INNER JOIN on a symbol column. The column type on the other table is int. We get the following error:

join column type mismatch

Describe the solution you'd like.

SYMBOL column types should be allowed as JOIN keys to any column data type.

Describe alternatives you've considered.

Creating duplicate columns:

  • one for SYMBOL
  • one for JOINS

Full Name:

ivan quintero

Affiliation:

Healthcare

Additional context

No response

@rodryquintero rodryquintero added the New feature Feature requests label Apr 4, 2024
@nwoolmer
Copy link
Contributor

nwoolmer commented Apr 6, 2024

Hi @rodryquintero,

Does it work with a cast? e.g

create table testJoin1 (
  sym symbol,
  ts timestamp
)

create table testJoin2 (
  i int,
  ts timestamp
)

select * from testJoin1
inner join testJoin2 on sym = i::symbol

Alternatively to i::symbol syntax, you can use cast(i as symbol)

@rodryquintero
Copy link
Author

rodryquintero commented Apr 6, 2024 via email

@puzpuzpuz puzpuzpuz added the SQL Issues or changes relating to SQL execution label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New feature Feature requests SQL Issues or changes relating to SQL execution
Projects
None yet
Development

No branches or pull requests

3 participants