apache / apache/druid

Handle the sql type named LONG

Open
#17,425 1 comment 0 reactions 0 assignees View on GitHub
Contributions Welcome Feature/Change Description
Dominant language
Java
Stars
14.1k
Forks
3.8k
Avg merge
2d 58m
Merged PRs (30d)
233

Description

### Motivation

People using the native engine may write `CAST( some AS LONG )` because they used to work with those types - however the sql parser doesn't know that type and returns an error.

### Description

It could be handled as an alias to `BIGINT`

Contributor guide

Open the contributing guide

Research direction

Start by locating the SQL parser's type handling for CAST and the existing handling or tests for BIGINT. Add coverage showing that LONG is accepted as an alias for BIGINT, then run the relevant SQL parser tests to confirm CAST expressions no longer fail.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.