Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

## Expected Behavior

## Current Behavior

## Steps to reproduce

### Specifications

- Version:
- Platform:
- Subsystem:

## Possible Solution
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

package feast.ingestion.transform;

import static feast.ingestion.util.JsonUtil.convertJsonStringToMap;

import com.google.inject.Inject;
import feast.ingestion.model.Specs;
import feast.ingestion.options.ImportJobOptions;
Expand All @@ -26,18 +28,16 @@
import feast.storage.ErrorsStore;
import feast.storage.noop.NoOpIO;
import feast.types.FeatureRowExtendedProto.FeatureRowExtended;
import java.util.List;
import lombok.extern.slf4j.Slf4j;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.values.PCollection;
import org.apache.beam.sdk.values.PDone;
import org.slf4j.event.Level;

import java.util.List;

import static feast.ingestion.util.JsonUtil.convertJsonStringToMap;

@Slf4j
public class ErrorsStoreTransform extends FeatureIO.Write {

public static final String ERRORS_STORE_STDERR = "stderr";
public static final String ERRORS_STORE_STDOUT = "stdout";
public static final String ERRORS_STORE_JSON = "file.json";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import feast.storage.ErrorsStore;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;
import java.util.ServiceLoader;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ErrorsStoreService {

private static ServiceLoader<ErrorsStore> serviceLoader = ServiceLoader.load(ErrorsStore.class);
private static List<ErrorsStore> manuallyRegistered = new ArrayList<>();

Expand All @@ -39,10 +39,12 @@ public class ErrorsStoreService {

public static List<ErrorsStore> getAll() {
return Lists.newArrayList(
Iterators.concat(manuallyRegistered.iterator(), serviceLoader.iterator()));
Iterators.concat(manuallyRegistered.iterator(), serviceLoader.iterator()));
}

/** Get store of the given subclass. */
/**
* Get store of the given subclass.
*/
public static <T extends ErrorsStore> T get(Class<T> clazz) {
for (ErrorsStore store : getAll()) {
if (clazz.isInstance(store)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@AutoService(ServingStore.class)
public class MockServingStore extends MockFeatureStore implements ServingStore {
public static final String MOCK_SERVING_STORE_TYPE = "MOCK_SERVING_STORE";
public static final String MOCK_SERVING_STORE_TYPE = "serving.mock";

public MockServingStore() {
super(MOCK_SERVING_STORE_TYPE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@AutoService(WarehouseStore.class)
public class MockWarehouseStore extends MockFeatureStore implements WarehouseStore {
public static final String MOCK_WAREHOUSE_STORE_TYPE = "MOCK_WAREHOUSE_STORE";
public static final String MOCK_WAREHOUSE_STORE_TYPE = "warehouse.mock";

public MockWarehouseStore() {
super(MOCK_WAREHOUSE_STORE_TYPE);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "TEST_SERVING",
"type": "MOCK_SERVING_STORE",
"type": "serving.mock",
"options": {}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"id": "TEST_WAREHOUSE",
"type": "MOCK_WAREHOUSE_STORE",
"type": "warehouse.mock",
"options": {}
}