From 46b13830e98dd8412939dbc94f14f4826d0fa1d8 Mon Sep 17 00:00:00 2001 From: Mathias <99316631+MCRE-BE@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:02:57 +0200 Subject: [PATCH 1/2] [FIX] Correct datetime formatting https://github.com/mukunku/ParquetViewer/issues/110 --- src/ParquetViewer/MainForm.EventHandlers.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ParquetViewer/MainForm.EventHandlers.cs b/src/ParquetViewer/MainForm.EventHandlers.cs index c5c22b9..d9878cb 100644 --- a/src/ParquetViewer/MainForm.EventHandlers.cs +++ b/src/ParquetViewer/MainForm.EventHandlers.cs @@ -88,7 +88,9 @@ private void searchFilterLabel_Click(object sender, EventArgs e) WHERE field_name IS NULL WHERE field_name IS NOT NULL DATETIME: - WHERE field_name >= #01/01/2000# + WHERE field_name >= #2000/12/31# + or + WHERE field_name >= #12/31/2000# NUMERIC: WHERE field_name <= 123.4 STRING: @@ -96,7 +98,7 @@ WHERE field_name LIKE '%value%' WHERE field_name = 'equals value' WHERE field_name <> 'not equals' MULTIPLE CONDITIONS: - WHERE (field_1 > #01/01/2000# AND field_1 < #01/01/2001#) OR field_2 <> 100 OR field_3 = 'string value'", "Filtering Query Syntax Examples"); + WHERE (field_1 > #2000/12/31# AND field_1 < #2001/12/31#) OR field_2 <> 100 OR field_3 = 'string value'", "Filtering Query Syntax Examples"); } private void mainGridView_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) From 206d48799b535b632b9e3e3e112772c6f0cabb51 Mon Sep 17 00:00:00 2001 From: Mathias <99316631+MCRE-BE@users.noreply.github.com> Date: Mon, 3 Jun 2024 17:03:11 +0200 Subject: [PATCH 2/2] [FEAT] Add link to wiki --- src/ParquetViewer/MainForm.EventHandlers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParquetViewer/MainForm.EventHandlers.cs b/src/ParquetViewer/MainForm.EventHandlers.cs index d9878cb..4c8da6d 100644 --- a/src/ParquetViewer/MainForm.EventHandlers.cs +++ b/src/ParquetViewer/MainForm.EventHandlers.cs @@ -84,12 +84,12 @@ private void MainForm_DragEnter(object sender, DragEventArgs e) private void searchFilterLabel_Click(object sender, EventArgs e) { - MessageBox.Show(@"NULL CHECK: + MessageBox.Show(@"Detailed documentation : https://github.com/mukunku/ParquetViewer/wiki/Running-Queries +NULL CHECK: WHERE field_name IS NULL WHERE field_name IS NOT NULL DATETIME: WHERE field_name >= #2000/12/31# - or WHERE field_name >= #12/31/2000# NUMERIC: WHERE field_name <= 123.4