Skip to content

Space removed in the extract presto function after query formatting.  #562

@bkyryliuk

Description

@bkyryliuk
sqlparse.format( "SELECT extract(HOUR from from_unixtime(hour_ts) AT TIME ZONE 'America/Los_Angeles') from table", reindent=True)

removes space between from and from_unixtime(hour_ts in the 0.3.1 version, works fine in 0.3.0

Related superset PR: apache/superset#10165

Expected

SELECT extract(HOUR
               from from_unixtime(hour_ts) AT TIME ZONE 'America/Los_Angeles')
from table

Actual

SELECT extract(HOUR
               fromfrom_unixtime(hour_ts) AT TIME ZONE 'America/Los_Angeles')
from table

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions