[ 
https://issues.apache.org/jira/browse/BEAM-10343?focusedWorklogId=454718&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-454718
 ]

ASF GitHub Bot logged work on BEAM-10343:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 06/Jul/20 06:57
            Start Date: 06/Jul/20 06:57
    Worklog Time Spent: 10m 
      Work Description: purbanow commented on a change in pull request #12117:
URL: https://github.com/apache/beam/pull/12117#discussion_r450018715



##########
File path: 
sdks/java/io/snowflake/src/main/java/org/apache/beam/sdk/io/snowflake/data/text/SnowflakeBinary.java
##########
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.sdk.io.snowflake.data.text;
+
+import java.io.Serializable;
+import org.apache.beam.sdk.io.snowflake.data.SnowflakeDataType;
+
+public class SnowflakeBinary implements SnowflakeDataType, Serializable {
+
+  private static final Long MAX_SIZE = 8388608L;
+
+  private Long size; // bytes
+
+  public SnowflakeBinary() {}
+
+  public static SnowflakeBinary of() {
+    return new SnowflakeBinary();
+  }
+
+  public static SnowflakeBinary of(long size) {
+    return new SnowflakeBinary(size);
+  }
+
+  public SnowflakeBinary(long size) {
+    if (size > MAX_SIZE) {
+      throw new IllegalArgumentException();

Review comment:
       I added message. Thanks




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 454718)
    Time Spent: 1h 40m  (was: 1.5h)

> Add dispositions for SnowflakeIO.write
> --------------------------------------
>
>                 Key: BEAM-10343
>                 URL: https://issues.apache.org/jira/browse/BEAM-10343
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-ideas
>            Reporter: Pawel Urbanowicz
>            Assignee: Pawel Urbanowicz
>            Priority: P2
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to