File tree Expand file tree Collapse file tree 2 files changed +888
-640
lines changed
kernel-api/src/main/java/io/delta/kernel/expressions
kernel-defaults/src/test/scala/io/delta/kernel/defaults Expand file tree Collapse file tree 2 files changed +888
-640
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,17 @@ public static Literal ofString(String value) {
121121 return new Literal (value , StringType .STRING );
122122 }
123123
124+ /**
125+ * Create a {@code string} type literal expression with collated {@link StringType}.
126+ *
127+ * @param value literal value
128+ * @param collationIdentifier collation identifier for the string literal
129+ * @return a {@link Literal} of type {@link StringType} with the given collation
130+ */
131+ public static Literal ofString (String value , CollationIdentifier collationIdentifier ) {
132+ return new Literal (value , new StringType (collationIdentifier ));
133+ }
134+
124135 /**
125136 * Create a {@code binary} type literal expression.
126137 *
You can’t perform that action at this time.
0 commit comments