Update docs/en/sql-reference/aggregate-functions/reference/intervalLengthSum.md

Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
This commit is contained in:
sevirov 2021-06-02 21:56:53 +03:00 committed by GitHub
parent 33f14ad6e2
commit 1c1b65b95b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,9 @@ intervalLengthSum(start, end)
└────┴───────┴─────┘ └────┴───────┴─────┘
``` ```
In this example, the arguments of the `Float32` type are used. In this case, the function returns a value of the `Float64` type: In this example, the arguments of the Float32 type are used. The function returns a value of the Float64 type.
Query:
``` sql ``` sql
SELECT id, intervalLengthSum(start, end), toTypeName(intervalLengthSum(start, end)) FROM fl_interval GROUP BY id ORDER BY id; SELECT id, intervalLengthSum(start, end), toTypeName(intervalLengthSum(start, end)) FROM fl_interval GROUP BY id ORDER BY id;