Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ WITH `bfcte_0` AS (
), `bfcte_1` AS (
SELECT
*,
ENDS_WITH(`bfcol_0`, 'ab') OR ENDS_WITH(`bfcol_0`, 'cd') AS `bfcol_1`
ENDS_WITH(`bfcol_0`, 'ab') AS `bfcol_1`,
ENDS_WITH(`bfcol_0`, 'ab') OR ENDS_WITH(`bfcol_0`, 'cd') AS `bfcol_2`,
FALSE AS `bfcol_3`
FROM `bfcte_0`
)
SELECT
`bfcol_1` AS `string_col`
`bfcol_1` AS `single`,
`bfcol_2` AS `double`,
`bfcol_3` AS `empty`
FROM `bfcte_1`

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ WITH `bfcte_0` AS (
), `bfcte_1` AS (
SELECT
*,
STARTS_WITH(`bfcol_0`, 'ab') OR STARTS_WITH(`bfcol_0`, 'cd') AS `bfcol_1`
STARTS_WITH(`bfcol_0`, 'ab') AS `bfcol_1`,
STARTS_WITH(`bfcol_0`, 'ab') OR STARTS_WITH(`bfcol_0`, 'cd') AS `bfcol_2`,
FALSE AS `bfcol_3`
FROM `bfcte_0`
)
SELECT
`bfcol_1` AS `string_col`
`bfcol_1` AS `single`,
`bfcol_2` AS `double`,
`bfcol_3` AS `empty`
FROM `bfcte_1`

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ WITH `bfcte_0` AS (
), `bfcte_1` AS (
SELECT
*,
INSTR(`bfcol_0`, 'e', 1) - 1 AS `bfcol_1`
INSTR(`bfcol_0`, 'e', 1) - 1 AS `bfcol_1`,
INSTR(`bfcol_0`, 'e', 3) - 1 AS `bfcol_2`,
INSTR(SUBSTRING(`bfcol_0`, 1, 5), 'e') - 1 AS `bfcol_3`,
INSTR(SUBSTRING(`bfcol_0`, 3, 3), 'e') - 1 AS `bfcol_4`
FROM `bfcte_0`
)
SELECT
`bfcol_1` AS `string_col`
`bfcol_1` AS `none_none`,
`bfcol_2` AS `start_none`,
`bfcol_3` AS `none_end`,
`bfcol_4` AS `start_end`
FROM `bfcte_1`

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ WITH `bfcte_0` AS (
), `bfcte_1` AS (
SELECT
*,
LPAD(`bfcol_0`, GREATEST(LENGTH(`bfcol_0`), 10), '-') AS `bfcol_1`,
RPAD(`bfcol_0`, GREATEST(LENGTH(`bfcol_0`), 10), '-') AS `bfcol_2`,
RPAD(
LPAD(
`bfcol_0`,
Expand All @@ -13,9 +15,11 @@ WITH `bfcte_0` AS (
),
GREATEST(LENGTH(`bfcol_0`), 10),
'-'
) AS `bfcol_1`
) AS `bfcol_3`
FROM `bfcte_0`
)
SELECT
`bfcol_1` AS `string_col`
`bfcol_1` AS `left`,
`bfcol_2` AS `right`,
`bfcol_3` AS `both`
FROM `bfcte_1`

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ WITH `bfcte_0` AS (
), `bfcte_1` AS (
SELECT
*,
`bfcol_0`.`name` AS `bfcol_1`
`bfcol_0`.`name` AS `bfcol_1`,
`bfcol_0`.`name` AS `bfcol_2`
FROM `bfcte_0`
)
SELECT
`bfcol_1` AS `people`
`bfcol_1` AS `string`,
`bfcol_2` AS `int`
FROM `bfcte_1`
Loading