You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* to_timestamp_millis(): support casting to Timestamp(Milliseconds, _) from Int64
* Add testing setup to instructions
* to_timestamp_millis(): Convert timestamp strings to TimestampMillis
* [functions] Add to_timestamp_micros() and to_timestamp_seconds() functions
* Update datafusion/tests/sql.rs
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
* CR feedback and fix build
* Add ability for to_timestamp_xxx() functions to cast from other Timestamp types
* For consistency, let to_timestamp() also perform casts
* Prettier / clippy
* Add docs for to_timestamp() functions
Co-authored-by: Evan Chan <evan@urbanlogiq.com>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Copy file name to clipboardExpand all lines: DEVELOPERS.md
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,13 @@ DataFusion is written in Rust and it uses a standard rust toolkit:
33
33
-`cargo test` to test
34
34
- etc.
35
35
36
+
Testing setup:
37
+
38
+
-`git submodule init`
39
+
-`git submodule update`
40
+
-`export PARQUET_TEST_DATA=parquet_testing/`
41
+
-`export ARROW_TEST_DATA=testing/data/`
42
+
36
43
## How to add a new scalar function
37
44
38
45
Below is a checklist of what you need to do to add a new scalar function to DataFusion:
@@ -47,7 +54,7 @@ Below is a checklist of what you need to do to add a new scalar function to Data
47
54
- a new entry to `FromStr` with the name of the function as called by SQL
48
55
- a new line in `return_type` with the expected return type of the function, given an incoming type
49
56
- a new line in `signature` with the signature of the function (number and types of its arguments)
50
-
- a new line in `create_physical_expr` mapping the built-in to the implementation
57
+
- a new line in `create_physical_expr`/`create_physical_fun` mapping the built-in to the implementation
51
58
- tests to the function.
52
59
- In [tests/sql.rs](datafusion/tests/sql.rs), add a new test where the function is called through SQL against well known data and returns the expected result.
53
60
- In [src/logical_plan/expr](datafusion/src/logical_plan/expr.rs), add:
0 commit comments