TheNeuralBit commented on a change in pull request #13572:
URL: https://github.com/apache/beam/pull/13572#discussion_r548095254



##########
File path: sdks/java/core/src/main/java/org/apache/beam/sdk/util/SqlRows.java
##########
@@ -0,0 +1,132 @@
+/*
+ * 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.util;
+
+import static org.apache.beam.sdk.util.Preconditions.checkArgumentNotNull;
+
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import org.apache.beam.sdk.coders.Coder;
+import org.apache.beam.sdk.schemas.Schema;
+import org.apache.beam.sdk.schemas.SchemaProvider;
+import org.apache.beam.sdk.transforms.ProcessFunction;
+import org.apache.beam.sdk.transforms.SerializableFunction;
+import org.apache.beam.sdk.transforms.SimpleFunction;
+import org.apache.beam.sdk.values.Row;
+import org.apache.beam.sdk.values.TypeDescriptor;
+
+public final class SqlRows {

Review comment:
       Yes this sounds ideal. As far as 3.0 - I think it would make sense to 
start working on it in 2.x versions as an `@Experimental` API. We shouldn't 
remove the existing IOs prior to a major version change, but it would be fine 
to start work on an alternative. This would be similar to (and related to) the 
`SchemaIOProvider` concept we had a Google intern work on last summer:
   - https://s.apache.org/schemaio-development-guide
   - http://s.apache.org/beam-schema-io
   
   Would you have any interest in working on an effort like this?
   
   CC: @robinyqiu a design like this would be relevant for your work on IOs




----------------------------------------------------------------
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


Reply via email to