Skip to content

Conversation

@rhino1998
Copy link
Contributor

@rhino1998 rhino1998 commented Jan 26, 2026

This adds support for nested named and unnamed types with parameters like

    Tuple()
    Tuple(String, Int64)
    Tuple(String, Tuple(String, String))
    Tuple(a String, cd Tuple(c String, d String))

@coveralls
Copy link

Pull Request Test Coverage Report for Build 21345979922

Details

  • 68 of 93 (73.12%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 51.493%

Changes Missing Coverage Covered Lines Changed/Added Lines %
parser/parser_column.go 68 93 73.12%
Totals Coverage Status
Change from base Build 21280479720: 0.1%
Covered Lines: 8103
Relevant Lines: 15736

💛 - Coveralls

@git-hulk git-hulk self-requested a review January 26, 2026 10:18
Copy link
Member

@git-hulk git-hulk left a comment

Choose a reason for hiding this comment

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

@rhino1998 Thanks for your contribution. Left two naming suggestions.

}
}

func (p *Parser) parseNestedTypeFieldsWithNames(firstIdent *Ident) ([]Expr, error) {
Copy link
Member

Choose a reason for hiding this comment

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

firstIdent => columnName

return columns, nil
}

func (p *Parser) parseNestedTypeFieldsWithoutNames(firstIdent *Ident) ([]Expr, error) {
Copy link
Member

Choose a reason for hiding this comment

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

firstIdent => columnType

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

Successfully merging this pull request may close these issues.

3 participants