google / google/googlesql

Getting the column aliases in a Visitor

Open
#81 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm trying to parse the following query through the java implementation:

WITH test_table AS (
SELECT
column_source as column_alias
FROM `table_in_catalog`
)

SELECT column_alias FROM test_table
But I'm unable to find a visitor that connects column_source with column_alias.

Is there any way to extract this?

Contributor guide

Open the contributing guide

Research direction

Start by locating the Java visitor API used to parse the shown CTE query and inspect how aliases are represented. Done means establishing whether the visitor exposes a mapping between column_source and column_alias and identifying the supported extraction path.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, java, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.