Skip to content

[Bug] Doris View Order by 会过度列裁剪导致列为空 #61219

@liliyuanshang

Description

@liliyuanshang

Search before asking

  • I had searched in the issues and found no similar issues.

Version

doris 4.0.1

What's Wrong?

SELECT *
FROM view_name
ORDER BY a ASC, b
LIMIT 100; 视图的列过度裁剪,除order by的a,b列,其余列为空 create view a as SELECT
c1,c2,c3
FROM (
SELECT
*
FLOOR(
TIMESTAMPDIFF(
HOUR,
DATE_SUB(datatime1, INTERVAL 10 DAY),
COALESCE(datatime2, CURRENT_TIMESTAMP())
) / 24
) AS c
FROM table
) t1

What You Expected?

修正这个bug,

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions