-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Coral-Schema] Support ROW_NUMBER() OVER WINDOW (#437)
* [Coral-Schema] Support ROW_NUMBER() OVER WINDOW * fix inline comment
- Loading branch information
Showing
3 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
coral-schema/src/test/resources/testRowNumberOverWindow-expected.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"type" : "record", | ||
"name" : "foo_with_rownumber_over_window", | ||
"namespace" : "default.foo_with_rownumber_over_window", | ||
"fields" : [ { | ||
"name" : "Id", | ||
"type" : "int" | ||
}, { | ||
"name" : "Array_Col", | ||
"type" : [ "null", { | ||
"type" : "array", | ||
"items" : [ "null", "string" ] | ||
} ] | ||
}, { | ||
"name" : "Map_Col", | ||
"type" : [ "null", { | ||
"type" : "map", | ||
"values" : [ "null", "string" ] | ||
} ] | ||
}, { | ||
"name" : "Struct_Col", | ||
"type" : [ "null", { | ||
"type" : "record", | ||
"name" : "Struct_col", | ||
"namespace" : "default.foo_with_rownumber_over_window.foo_with_rownumber_over_window", | ||
"fields" : [ { | ||
"name" : "Bool_Field", | ||
"type" : "boolean" | ||
}, { | ||
"name" : "Int_Field", | ||
"type" : [ "null", "int" ] | ||
}, { | ||
"name" : "Bigint_Field", | ||
"type" : "long" | ||
}, { | ||
"name" : "Float_Field", | ||
"type" : [ "null", "float" ] | ||
}, { | ||
"name" : "Double_Field", | ||
"type" : "double" | ||
}, { | ||
"name" : "Date_String_Field", | ||
"type" : [ "null", "string" ] | ||
}, { | ||
"name" : "String_Field", | ||
"type" : [ "null", "string" ] | ||
} ] | ||
} ] | ||
}, { | ||
"name" : "rank", | ||
"type" : "long", | ||
"doc" : "Field created in view by applying operator 'ROW_NUMBER'" | ||
} ] | ||
} |