Remove time zones from the test 02783_parsedatetimebesteffort_syslog

This commit is contained in:
Victor Krasnov 2023-06-16 22:00:16 +03:00
parent d3be3bdc9b
commit bfd3154190
2 changed files with 28 additions and 124 deletions

View File

@ -4,82 +4,34 @@ The argument is before the reference time point
─────────────────────────────────────────────── ───────────────────────────────────────────────
Row 1: Row 1:
────── ──────
syslog_arg: Jun 30 23:58:30 syslog_arg: Jun 30 23:58:30
res: 2023-06-30 23:58:30 res: 2023-06-30 23:58:30
res_sam: 2022-06-30 23:58:30 res_null: 2023-06-30 23:58:30
res_auc: 2023-06-30 23:58:30 res_zero: 2023-06-30 23:58:30
res_null: 2023-06-30 23:58:30 res_us: 2023-06-30 23:58:30
res_null_sam: 2022-06-30 23:58:30 res_us_null: 2023-06-30 23:58:30
res_null_auc: 2023-06-30 23:58:30 res_us_zero: 2023-06-30 23:58:30
res_zero: 2023-06-30 23:58:30 res64: 2023-06-30 23:58:30.000
res_zero_sam: 2022-06-30 23:58:30 res64_null: 2023-06-30 23:58:30.000
res_zero_auc: 2023-06-30 23:58:30 res64_zero: 2023-06-30 23:58:30.000
res_us: 2023-06-30 23:58:30 res64_us: 2023-06-30 23:58:30.000
res_us_sam: 2022-06-30 23:58:30 res64_us_null: 2023-06-30 23:58:30.000
res_us_auc: 2023-06-30 23:58:30 res64_us_zero: 2023-06-30 23:58:30.000
res_us_null: 2023-06-30 23:58:30
res_us_null_sam: 2022-06-30 23:58:30
res_us_null_auc: 2023-06-30 23:58:30
res_us_zero: 2023-06-30 23:58:30
res_us_zero_sam: 2022-06-30 23:58:30
res_us_zero_auc: 2023-06-30 23:58:30
res64: 2023-06-30 23:58:30.000
res64_sam: 2022-06-30 23:58:30.000
res64_auc: 2023-06-30 23:58:30.000
res64_null: 2023-06-30 23:58:30.000
res64_null_sam: 2022-06-30 23:58:30.000
res64_null_auc: 2023-06-30 23:58:30.000
res64_zero: 2023-06-30 23:58:30.000
res64_zero_sam: 2022-06-30 23:58:30.000
res64_zero_auc: 2023-06-30 23:58:30.000
res64_us: 2023-06-30 23:58:30.000
res64_us_sam: 2022-06-30 23:58:30.000
res64_us_auc: 2023-06-30 23:58:30.000
res64_us_null: 2023-06-30 23:58:30.000
res64_us_null_sam: 2022-06-30 23:58:30.000
res64_us_null_auc: 2023-06-30 23:58:30.000
res64_us_zero: 2023-06-30 23:58:30.000
res64_us_zero_sam: 2022-06-30 23:58:30.000
res64_us_zero_auc: 2023-06-30 23:58:30.000
────────────────────────────────────────────── ──────────────────────────────────────────────
The argument is after the reference time point The argument is after the reference time point
────────────────────────────────────────────── ──────────────────────────────────────────────
Row 1: Row 1:
────── ──────
syslog_arg: Jul 1 00:00:30 syslog_arg: Jul 1 00:00:30
res: 2022-07-01 00:00:30 res: 2022-07-01 00:00:30
res_sam: 2022-07-01 00:00:30 res_null: 2022-07-01 00:00:30
res_auc: 2023-07-01 00:00:30 res_zero: 2022-07-01 00:00:30
res_null: 2022-07-01 00:00:30 res_us: 2022-07-01 00:00:30
res_null_sam: 2022-07-01 00:00:30 res_us_null: 2022-07-01 00:00:30
res_null_auc: 2023-07-01 00:00:30 res_us_zero: 2022-07-01 00:00:30
res_zero: 2022-07-01 00:00:30 res64: 2022-07-01 00:00:30.000
res_zero_sam: 2022-07-01 00:00:30 res64_null: 2022-07-01 00:00:30.000
res_zero_auc: 2023-07-01 00:00:30 res64_zero: 2022-07-01 00:00:30.000
res_us: 2022-07-01 00:00:30 res64_us: 2022-07-01 00:00:30.000
res_us_sam: 2022-07-01 00:00:30 res64_us_null: 2022-07-01 00:00:30.000
res_us_auc: 2023-07-01 00:00:30 res64_us_zero: 2022-07-01 00:00:30.000
res_us_null: 2022-07-01 00:00:30
res_us_null_sam: 2022-07-01 00:00:30
res_us_null_auc: 2023-07-01 00:00:30
res_us_zero: 2022-07-01 00:00:30
res_us_zero_sam: 2022-07-01 00:00:30
res_us_zero_auc: 2023-07-01 00:00:30
res64: 2022-07-01 00:00:30.000
res64_sam: 2022-07-01 00:00:30.000
res64_auc: 2023-07-01 00:00:30.000
res64_null: 2022-07-01 00:00:30.000
res64_null_sam: 2022-07-01 00:00:30.000
res64_null_auc: 2023-07-01 00:00:30.000
res64_zero: 2022-07-01 00:00:30.000
res64_zero_sam: 2022-07-01 00:00:30.000
res64_zero_auc: 2023-07-01 00:00:30.000
res64_us: 2022-07-01 00:00:30.000
res64_us_sam: 2022-07-01 00:00:30.000
res64_us_auc: 2023-07-01 00:00:30.000
res64_us_null: 2022-07-01 00:00:30.000
res64_us_null_sam: 2022-07-01 00:00:30.000
res64_us_null_auc: 2023-07-01 00:00:30.000
res64_us_zero: 2022-07-01 00:00:30.000
res64_us_zero_sam: 2022-07-01 00:00:30.000
res64_us_zero_auc: 2023-07-01 00:00:30.000

View File

@ -12,41 +12,17 @@ WITH
SELECT SELECT
formatDateTime(dt_before - time_shift, '%b %e %T') AS syslog_arg, formatDateTime(dt_before - time_shift, '%b %e %T') AS syslog_arg,
parseDateTimeBestEffort(syslog_before) - time_shift AS res, parseDateTimeBestEffort(syslog_before) - time_shift AS res,
parseDateTimeBestEffort(syslog_before, 'US/Samoa') - time_shift AS res_sam,
parseDateTimeBestEffort(syslog_before, 'Pacific/Auckland') - time_shift AS res_auc,
parseDateTimeBestEffortOrNull(syslog_before) - time_shift AS res_null, parseDateTimeBestEffortOrNull(syslog_before) - time_shift AS res_null,
parseDateTimeBestEffortOrNull(syslog_before, 'US/Samoa') - time_shift AS res_null_sam,
parseDateTimeBestEffortOrNull(syslog_before, 'Pacific/Auckland') - time_shift AS res_null_auc,
parseDateTimeBestEffortOrZero(syslog_before) - time_shift AS res_zero, parseDateTimeBestEffortOrZero(syslog_before) - time_shift AS res_zero,
parseDateTimeBestEffortOrZero(syslog_before, 'US/Samoa') - time_shift AS res_zero_sam,
parseDateTimeBestEffortOrZero(syslog_before, 'Pacific/Auckland') - time_shift AS res_zero_auc,
parseDateTimeBestEffortUS(syslog_before) - time_shift AS res_us, parseDateTimeBestEffortUS(syslog_before) - time_shift AS res_us,
parseDateTimeBestEffortUS(syslog_before, 'US/Samoa') - time_shift AS res_us_sam,
parseDateTimeBestEffortUS(syslog_before, 'Pacific/Auckland') - time_shift AS res_us_auc,
parseDateTimeBestEffortUSOrNull(syslog_before) - time_shift AS res_us_null, parseDateTimeBestEffortUSOrNull(syslog_before) - time_shift AS res_us_null,
parseDateTimeBestEffortUSOrNull(syslog_before, 'US/Samoa') - time_shift AS res_us_null_sam,
parseDateTimeBestEffortUSOrNull(syslog_before, 'Pacific/Auckland') - time_shift AS res_us_null_auc,
parseDateTimeBestEffortUSOrZero(syslog_before) - time_shift AS res_us_zero, parseDateTimeBestEffortUSOrZero(syslog_before) - time_shift AS res_us_zero,
parseDateTimeBestEffortUSOrZero(syslog_before, 'US/Samoa') - time_shift AS res_us_zero_sam,
parseDateTimeBestEffortUSOrZero(syslog_before, 'Pacific/Auckland') - time_shift AS res_us_zero_auc,
parseDateTime64BestEffort(syslog_before) - time_shift AS res64, parseDateTime64BestEffort(syslog_before) - time_shift AS res64,
parseDateTime64BestEffort(syslog_before, 3, 'US/Samoa') - time_shift AS res64_sam,
parseDateTime64BestEffort(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_auc,
parseDateTime64BestEffortOrNull(syslog_before) - time_shift AS res64_null, parseDateTime64BestEffortOrNull(syslog_before) - time_shift AS res64_null,
parseDateTime64BestEffortOrNull(syslog_before, 3, 'US/Samoa') - time_shift AS res64_null_sam,
parseDateTime64BestEffortOrNull(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_null_auc,
parseDateTime64BestEffortOrZero(syslog_before) - time_shift AS res64_zero, parseDateTime64BestEffortOrZero(syslog_before) - time_shift AS res64_zero,
parseDateTime64BestEffortOrZero(syslog_before, 3, 'US/Samoa') - time_shift AS res64_zero_sam,
parseDateTime64BestEffortOrZero(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_zero_auc,
parseDateTime64BestEffortUS(syslog_before) - time_shift AS res64_us, parseDateTime64BestEffortUS(syslog_before) - time_shift AS res64_us,
parseDateTime64BestEffortUS(syslog_before, 3, 'US/Samoa') - time_shift AS res64_us_sam,
parseDateTime64BestEffortUS(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_us_auc,
parseDateTime64BestEffortUSOrNull(syslog_before) - time_shift AS res64_us_null, parseDateTime64BestEffortUSOrNull(syslog_before) - time_shift AS res64_us_null,
parseDateTime64BestEffortUSOrNull(syslog_before, 3, 'US/Samoa') - time_shift AS res64_us_null_sam, parseDateTime64BestEffortUSOrZero(syslog_before) - time_shift AS res64_us_zero
parseDateTime64BestEffortUSOrNull(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_us_null_auc,
parseDateTime64BestEffortUSOrZero(syslog_before) - time_shift AS res64_us_zero,
parseDateTime64BestEffortUSOrZero(syslog_before, 3, 'US/Samoa') - time_shift AS res64_us_zero_sam,
parseDateTime64BestEffortUSOrZero(syslog_before, 3, 'Pacific/Auckland') - time_shift AS res64_us_zero_auc
FORMAT Vertical; FORMAT Vertical;
SELECT '──────────────────────────────────────────────'; SELECT '──────────────────────────────────────────────';
@ -62,39 +38,15 @@ WITH
SELECT SELECT
formatDateTime(dt_after - time_shift, '%b %e %T') AS syslog_arg, formatDateTime(dt_after - time_shift, '%b %e %T') AS syslog_arg,
parseDateTimeBestEffort(syslog_after) - time_shift AS res, parseDateTimeBestEffort(syslog_after) - time_shift AS res,
parseDateTimeBestEffort(syslog_after, 'US/Samoa') - time_shift AS res_sam,
parseDateTimeBestEffort(syslog_after, 'Pacific/Auckland') - time_shift AS res_auc,
parseDateTimeBestEffortOrNull(syslog_after) - time_shift AS res_null, parseDateTimeBestEffortOrNull(syslog_after) - time_shift AS res_null,
parseDateTimeBestEffortOrNull(syslog_after, 'US/Samoa') - time_shift AS res_null_sam,
parseDateTimeBestEffortOrNull(syslog_after, 'Pacific/Auckland') - time_shift AS res_null_auc,
parseDateTimeBestEffortOrZero(syslog_after) - time_shift AS res_zero, parseDateTimeBestEffortOrZero(syslog_after) - time_shift AS res_zero,
parseDateTimeBestEffortOrZero(syslog_after, 'US/Samoa') - time_shift AS res_zero_sam,
parseDateTimeBestEffortOrZero(syslog_after, 'Pacific/Auckland') - time_shift AS res_zero_auc,
parseDateTimeBestEffortUS(syslog_after) - time_shift AS res_us, parseDateTimeBestEffortUS(syslog_after) - time_shift AS res_us,
parseDateTimeBestEffortUS(syslog_after, 'US/Samoa') - time_shift AS res_us_sam,
parseDateTimeBestEffortUS(syslog_after, 'Pacific/Auckland') - time_shift AS res_us_auc,
parseDateTimeBestEffortUSOrNull(syslog_after) - time_shift AS res_us_null, parseDateTimeBestEffortUSOrNull(syslog_after) - time_shift AS res_us_null,
parseDateTimeBestEffortUSOrNull(syslog_after, 'US/Samoa') - time_shift AS res_us_null_sam,
parseDateTimeBestEffortUSOrNull(syslog_after, 'Pacific/Auckland') - time_shift AS res_us_null_auc,
parseDateTimeBestEffortUSOrZero(syslog_after) - time_shift AS res_us_zero, parseDateTimeBestEffortUSOrZero(syslog_after) - time_shift AS res_us_zero,
parseDateTimeBestEffortUSOrZero(syslog_after, 'US/Samoa') - time_shift AS res_us_zero_sam,
parseDateTimeBestEffortUSOrZero(syslog_after, 'Pacific/Auckland') - time_shift AS res_us_zero_auc,
parseDateTime64BestEffort(syslog_after) - time_shift AS res64, parseDateTime64BestEffort(syslog_after) - time_shift AS res64,
parseDateTime64BestEffort(syslog_after, 3, 'US/Samoa') - time_shift AS res64_sam,
parseDateTime64BestEffort(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_auc,
parseDateTime64BestEffortOrNull(syslog_after) - time_shift AS res64_null, parseDateTime64BestEffortOrNull(syslog_after) - time_shift AS res64_null,
parseDateTime64BestEffortOrNull(syslog_after, 3, 'US/Samoa') - time_shift AS res64_null_sam,
parseDateTime64BestEffortOrNull(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_null_auc,
parseDateTime64BestEffortOrZero(syslog_after) - time_shift AS res64_zero, parseDateTime64BestEffortOrZero(syslog_after) - time_shift AS res64_zero,
parseDateTime64BestEffortOrZero(syslog_after, 3, 'US/Samoa') - time_shift AS res64_zero_sam,
parseDateTime64BestEffortOrZero(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_zero_auc,
parseDateTime64BestEffortUS(syslog_after) - time_shift AS res64_us, parseDateTime64BestEffortUS(syslog_after) - time_shift AS res64_us,
parseDateTime64BestEffortUS(syslog_after, 3, 'US/Samoa') - time_shift AS res64_us_sam,
parseDateTime64BestEffortUS(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_us_auc,
parseDateTime64BestEffortUSOrNull(syslog_after) - time_shift AS res64_us_null, parseDateTime64BestEffortUSOrNull(syslog_after) - time_shift AS res64_us_null,
parseDateTime64BestEffortUSOrNull(syslog_after, 3, 'US/Samoa') - time_shift AS res64_us_null_sam, parseDateTime64BestEffortUSOrZero(syslog_after) - time_shift AS res64_us_zero
parseDateTime64BestEffortUSOrNull(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_us_null_auc,
parseDateTime64BestEffortUSOrZero(syslog_after) - time_shift AS res64_us_zero,
parseDateTime64BestEffortUSOrZero(syslog_after, 3, 'US/Samoa') - time_shift AS res64_us_zero_sam,
parseDateTime64BestEffortUSOrZero(syslog_after, 3, 'Pacific/Auckland') - time_shift AS res64_us_zero_auc
FORMAT Vertical; FORMAT Vertical;